pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
vscode: add user flags to wrapper
Module Name: pkgsrc-wip
Committed By: kikadf <kikadf.01%gmail.com@localhost>
Pushed By: kikadf
Date: Thu Mar 20 18:44:23 2025 +0100
Changeset: ec4508de6c7538e4e4542f942b1c8a1070aa1c34
Modified Files:
vscode/files/code.sh.in
Log Message:
vscode: add user flags to wrapper
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ec4508de6c7538e4e4542f942b1c8a1070aa1c34
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
vscode/files/code.sh.in | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diffs:
diff --git a/vscode/files/code.sh.in b/vscode/files/code.sh.in
index 53f36faf8d..ff9f7de79a 100644
--- a/vscode/files/code.sh.in
+++ b/vscode/files/code.sh.in
@@ -9,5 +9,10 @@ else
fi
export LD_LIBRARY_PATH
+# User settings
+[ -d ~/.config ] || mkdir -m 0700 ~/.config
+[ -f ~/.config/vscode-flags.conf ] || echo 'VSCODE_FLAGS=""' > ~/.config/vscode-flags.conf
+. ~/.config/vscode-flags.conf
+
ELECTRON_RUN_AS_NODE=1 exec @PREFIX@/lib/vscode/code-oss \
-@PREFIX@/lib/vscode/resources/app/out/cli.js "$@"
+@PREFIX@/lib/vscode/resources/app/out/cli.js ${VSCODE_FLAGS} "$@"
Home |
Main Index |
Thread Index |
Old Index