Skip to content

Commit

Permalink
Workaround for Flycut prefs when file doesn't exist yet
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Nov 6, 2014
1 parent 9e15293 commit 6797acf
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions preferences/Flycut.prefs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
# todo get this app not from appstore
# https://github.com/TermiT/Flycut/issues/56

# be sure plist file exist by opening the app
openifnot Flycut
sleep 1
if ! ls "$HOME/Library/Application Support/Flycut/com.generalarcade.flycut.plist" &> /dev/null
then
echo_info "Flycut.app don't have a preferences file yet. Please change a setting a quit the app to create one. Then press a key"
open -a Flycut
read -k
sleep 1
fi

# kill so the app don't keep runtime values
killall Flycut
Expand Down

0 comments on commit 6797acf

Please sign in to comment.