Skip to content

Instantly share code, notes, and snippets.

@orthecreedence
Last active August 29, 2015 13:57
Show Gist options
  • Save orthecreedence/9916737 to your computer and use it in GitHub Desktop.
Save orthecreedence/9916737 to your computer and use it in GitHub Desktop.
Hotfix for disabling "minimize to tray"
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