Last active
August 29, 2015 13:57
-
-
Save orthecreedence/9916737 to your computer and use it in GitHub Desktop.
Hotfix for disabling "minimize to tray"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /path/to/turtl | |
mkdir -p tmp/release | |
cd tmp | |
unzip ../package.nw | |
# in your editor of choice, open main.js and find this block (around line 154): | |
# | |
# win.on('minimize', function() { | |
# win.hide(); | |
# // Window.hide() hides the tray menu, so we just remove it and re-add it | |
# make_tray(); | |
# }); | |
# | |
# and comment out the whole thing via /* ... */ | |
vim main.js # comment out the main.js minimization block | |
./scripts/package # will whine about missing config files. that's fine | |
# this overwrites the old package with your patched one | |
mv release/package.nw /path/to/turtl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment