Skip to content

Instantly share code, notes, and snippets.

@jhbruhn
Last active December 7, 2020 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhbruhn/1b7f50b40e81eb5fa23b44e832faf383 to your computer and use it in GitHub Desktop.
Save jhbruhn/1b7f50b40e81eb5fa23b44e832faf383 to your computer and use it in GitHub Desktop.
Electron launcher to pass command line flags from Home Config
#!/bin/sh
CONFIG_DIR=${XDG_CONFIG_HOME:-$HOME/.config}
CONFIG_FILE=$CONFIG_DIR/electron-flags.conf
xargs -a $CONFIG_FILE /usr/lib/electron/electron $@ || /usr/lib/electron/electron $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment