aur/visual-studio-code-bin.sh
n0k0m3 a059583646 [visual-studio-code-bin] Add wrapper for custom flags
This allows per-user configuration for native Wayland support.
2022-02-03 15:43:50 +00:00

11 lines
292 B
Bash

#!/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 "$@"