[visual-studio-code-bin] Add wrapper for custom flags
This allows per-user configuration for native Wayland support.
This commit is contained in:
11
visual-studio-code-bin.sh
Normal file
11
visual-studio-code-bin.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
|
||||
|
||||
# Allow users to override command-line options
|
||||
if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
|
||||
CODE_USER_FLAGS="$(cat $XDG_CONFIG_HOME/code-flags.conf)"
|
||||
fi
|
||||
|
||||
# Launch
|
||||
exec /opt/visual-studio-code/bin/code $CODE_USER_FLAGS "$@"
|
||||
Reference in New Issue
Block a user