-
-
Save dougio/8393990 to your computer and use it in GitHub Desktop.
node-webkit has a bug on mac, that is it often lost keyboard focus if it is started from terminal such as node-webkit.app/Contents/MacOS/node-webkit "PACKAGE_DIR" but use "open" works fine. https://github.com/rogerwang/node-webkit/wiki/How-to-run-apps#mac-os-x
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
#!/usr/bin/env bash | |
if [[ -z $1 ]] | |
then | |
APP_PATH="./" | |
else | |
APP_PATH="$1" | |
fi | |
open -n -a node-webkit "$APP_PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment