From 0b0e7c7852477919a6f39a7e59351a52fe09b657 Mon Sep 17 00:00:00 2001 From: Shikakiben <108907095+Shikakiben@users.noreply.github.com> Date: Mon, 3 Aug 2026 22:11:44 +0200 Subject: [PATCH 01/15] Rename code to code-cli in get-dependencies.sh Rename the executable to avoid conflicts with quick-sharun and update references in the desktop entry. --- get-dependencies.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/get-dependencies.sh b/get-dependencies.sh index e42dd73..7e905e6 100644 --- a/get-dependencies.sh +++ b/get-dependencies.sh @@ -33,6 +33,12 @@ mkdir -p ./AppDir/bin ./AppDir/share/applications tar -xvf /tmp/vscode.tar.gz mv -v ./VSCode-linux-*/* ./AppDir/bin +# Keep the CLI usable from a terminal: +# quick-sharun would overwrite bin/bin/codium with the Electron binary +# Renaming to codium-cli avoids the conflict; the desktop Exec= points to it. +# The script calls ../code (Electron) internally, which deploys normally. +mv ./AppDir/bin/bin/code ./AppDir/bin/bin/code-cli + # Extract version VERSION=$(awk -F'"' '/"version":/ {print $4}' ./AppDir/bin/resources/app/package.json) echo "$VERSION" > ~/version @@ -44,11 +50,11 @@ wget --retry-connrefused --tries=30 https://raw.githubusercontent.com/microsoft/ sed -i \ -e 's/@@NAME_SHORT@@/Code/g' \ -e 's/@@NAME@@/code/g' \ - -e 's#@@EXEC@@#code#g' \ + -e 's#@@EXEC@@#code-cli#g' \ -e 's/@@ICON@@/visual-studio-code/g' \ -e 's/@@URLPROTOCOL@@/vscode/g' \ -e 's/@@NAME_LONG@@/Visual Studio Code/g' \ ./AppDir/code.desktop ./AppDir/share/applications/code-url-handler.desktop # not needed -rm -rf ./AppDir/bin/resources/app/node_modules/@github/copilot-linuxmusl-x64 \ No newline at end of file +rm -rf ./AppDir/bin/resources/app/node_modules/@github/copilot-linuxmusl-x64 From ae0968aea52fa125ad987c205cf52fce6fedd8cc Mon Sep 17 00:00:00 2001 From: Shikakiben <108907095+Shikakiben@users.noreply.github.com> Date: Mon, 3 Aug 2026 23:08:10 +0200 Subject: [PATCH 02/15] Update get-dependencies.sh --- get-dependencies.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get-dependencies.sh b/get-dependencies.sh index 7e905e6..e1a288d 100644 --- a/get-dependencies.sh +++ b/get-dependencies.sh @@ -35,7 +35,7 @@ mv -v ./VSCode-linux-*/* ./AppDir/bin # Keep the CLI usable from a terminal: # quick-sharun would overwrite bin/bin/codium with the Electron binary -# Renaming to codium-cli avoids the conflict; the desktop Exec= points to it. +# Renaming to code-cli avoids the conflict; the desktop Exec= points to it. # The script calls ../code (Electron) internally, which deploys normally. mv ./AppDir/bin/bin/code ./AppDir/bin/bin/code-cli @@ -50,7 +50,7 @@ wget --retry-connrefused --tries=30 https://raw.githubusercontent.com/microsoft/ sed -i \ -e 's/@@NAME_SHORT@@/Code/g' \ -e 's/@@NAME@@/code/g' \ - -e 's#@@EXEC@@#code-cli#g' \ + -e 's#@@EXEC@@#bin/code-cli#g' \ -e 's/@@ICON@@/visual-studio-code/g' \ -e 's/@@URLPROTOCOL@@/vscode/g' \ -e 's/@@NAME_LONG@@/Visual Studio Code/g' \ From dfc0b1fa6d35518198aad3fec538b626ba7ab5bf Mon Sep 17 00:00:00 2001 From: Shikakiben <108907095+Shikakiben@users.noreply.github.com> Date: Mon, 3 Aug 2026 23:27:46 +0200 Subject: [PATCH 03/15] Update get-dependencies.sh --- get-dependencies.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/get-dependencies.sh b/get-dependencies.sh index e1a288d..3ff114a 100644 --- a/get-dependencies.sh +++ b/get-dependencies.sh @@ -33,12 +33,6 @@ mkdir -p ./AppDir/bin ./AppDir/share/applications tar -xvf /tmp/vscode.tar.gz mv -v ./VSCode-linux-*/* ./AppDir/bin -# Keep the CLI usable from a terminal: -# quick-sharun would overwrite bin/bin/codium with the Electron binary -# Renaming to code-cli avoids the conflict; the desktop Exec= points to it. -# The script calls ../code (Electron) internally, which deploys normally. -mv ./AppDir/bin/bin/code ./AppDir/bin/bin/code-cli - # Extract version VERSION=$(awk -F'"' '/"version":/ {print $4}' ./AppDir/bin/resources/app/package.json) echo "$VERSION" > ~/version @@ -47,10 +41,13 @@ echo "VS Code version: $VERSION" wget --retry-connrefused --tries=30 https://raw.githubusercontent.com/microsoft/vscode/refs/heads/main/resources/linux/code-url-handler.desktop -O ./AppDir/share/applications/code-url-handler.desktop wget --retry-connrefused --tries=30 https://raw.githubusercontent.com/microsoft/vscode/refs/heads/main/resources/linux/code.desktop -O ./AppDir/code.desktop +# Set desktop Exec= to bin/code so AppRun launches the CLI script +# instead of the Electron binary. This keeps the CLI usable from a +# terminal. The script calls ../code (Electron) internally. sed -i \ -e 's/@@NAME_SHORT@@/Code/g' \ -e 's/@@NAME@@/code/g' \ - -e 's#@@EXEC@@#bin/code-cli#g' \ + -e 's#@@EXEC@@#bin/code#g' \ -e 's/@@ICON@@/visual-studio-code/g' \ -e 's/@@URLPROTOCOL@@/vscode/g' \ -e 's/@@NAME_LONG@@/Visual Studio Code/g' \ From 0569a1ce880ca77eda13a17aeed9ae7e4233d585 Mon Sep 17 00:00:00 2001 From: Shikakiben <108907095+Shikakiben@users.noreply.github.com> Date: Mon, 3 Aug 2026 23:41:47 +0200 Subject: [PATCH 04/15] Protect CLI script from being overwritten Added protection for the CLI script to prevent overwriting. --- make-appimage.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make-appimage.sh b/make-appimage.sh index 92a33f3..204137c 100644 --- a/make-appimage.sh +++ b/make-appimage.sh @@ -13,7 +13,12 @@ export DEPLOY_OPENGL=1 export DEPLOY_VULKAN=1 # Deploy dependencies + +# Protect the CLI script: quick-sharun skips non-executable files, +# preventing it from being overwritten with an Electron sharun hardlink. +chmod -x ./AppDir/bin/bin/code quick-sharun ./AppDir/bin/* +chmod +x ./AppDir/bin/bin/code # Additional changes can be done in between here From de674cc15a57a9037ad9bdbaff84056d36d145d3 Mon Sep 17 00:00:00 2001 From: Shikakiben <108907095+Shikakiben@users.noreply.github.com> Date: Tue, 4 Aug 2026 09:23:52 +0200 Subject: [PATCH 05/15] Update get-dependencies.sh --- get-dependencies.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/get-dependencies.sh b/get-dependencies.sh index 3ff114a..0d86216 100644 --- a/get-dependencies.sh +++ b/get-dependencies.sh @@ -41,13 +41,10 @@ echo "VS Code version: $VERSION" wget --retry-connrefused --tries=30 https://raw.githubusercontent.com/microsoft/vscode/refs/heads/main/resources/linux/code-url-handler.desktop -O ./AppDir/share/applications/code-url-handler.desktop wget --retry-connrefused --tries=30 https://raw.githubusercontent.com/microsoft/vscode/refs/heads/main/resources/linux/code.desktop -O ./AppDir/code.desktop -# Set desktop Exec= to bin/code so AppRun launches the CLI script -# instead of the Electron binary. This keeps the CLI usable from a -# terminal. The script calls ../code (Electron) internally. sed -i \ -e 's/@@NAME_SHORT@@/Code/g' \ -e 's/@@NAME@@/code/g' \ - -e 's#@@EXEC@@#bin/code#g' \ + -e 's#@@EXEC@@#code#g' \ -e 's/@@ICON@@/visual-studio-code/g' \ -e 's/@@URLPROTOCOL@@/vscode/g' \ -e 's/@@NAME_LONG@@/Visual Studio Code/g' \ From 60967f67bce8da7d40b4041b3b874e6621acdaec Mon Sep 17 00:00:00 2001 From: Shikakiben <108907095+Shikakiben@users.noreply.github.com> Date: Tue, 4 Aug 2026 09:25:01 +0200 Subject: [PATCH 06/15] Implement CLI router for AppImage launcher Add CLI router to ensure commands route through the official launcher. --- make-appimage.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/make-appimage.sh b/make-appimage.sh index 204137c..0f31564 100644 --- a/make-appimage.sh +++ b/make-appimage.sh @@ -20,6 +20,12 @@ chmod -x ./AppDir/bin/bin/code quick-sharun ./AppDir/bin/* chmod +x ./AppDir/bin/bin/code +# Route all launches through the official launcher (CLI script : bin/bin/code) +# This keeps CLI commands working. +cat > ./AppDir/bin/cli-router.hook <<'EOF' +exec "$APPDIR/bin/bin/code" "$@" +EOF + # Additional changes can be done in between here # Turn AppDir into AppImage From 2737af3eae0897544046057b47690c8299cac241 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 4 Aug 2026 07:37:58 +0000 Subject: [PATCH 07/15] bump `LATEST_VERSION` [skip ci] From afa17b4f31207f8b96579501fc21444c233beeb5 Mon Sep 17 00:00:00 2001 From: Shikakiben <108907095+Shikakiben@users.noreply.github.com> Date: Tue, 4 Aug 2026 10:04:34 +0200 Subject: [PATCH 08/15] Refactor comments in make-appimage.sh for clarity Updated comments for clarity and improved understanding of script functionality. --- make-appimage.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/make-appimage.sh b/make-appimage.sh index 0f31564..6af6a8c 100644 --- a/make-appimage.sh +++ b/make-appimage.sh @@ -13,15 +13,14 @@ export DEPLOY_OPENGL=1 export DEPLOY_VULKAN=1 # Deploy dependencies - -# Protect the CLI script: quick-sharun skips non-executable files, -# preventing it from being overwritten with an Electron sharun hardlink. +# Protect the CLI script (bin/bin/code) from being overwritten by an Electron hardlink. +# quick-sharun skips non-executable files, so we make it non-executable temporarily. chmod -x ./AppDir/bin/bin/code quick-sharun ./AppDir/bin/* chmod +x ./AppDir/bin/bin/code -# Route all launches through the official launcher (CLI script : bin/bin/code) -# This keeps CLI commands working. +# Route all launches through the CLI script (bin/bin/code). +# This keeps CLI commands working and doesn't affect normal launch. cat > ./AppDir/bin/cli-router.hook <<'EOF' exec "$APPDIR/bin/bin/code" "$@" EOF From c1156cf6c4c2fc76545d532ffa412f02fe04431d Mon Sep 17 00:00:00 2001 From: Shikakiben <108907095+Shikakiben@users.noreply.github.com> Date: Tue, 4 Aug 2026 10:50:35 +0200 Subject: [PATCH 09/15] Update get-dependencies.sh --- get-dependencies.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get-dependencies.sh b/get-dependencies.sh index 0d86216..686285a 100644 --- a/get-dependencies.sh +++ b/get-dependencies.sh @@ -44,7 +44,7 @@ wget --retry-connrefused --tries=30 https://raw.githubusercontent.com/microsoft/ sed -i \ -e 's/@@NAME_SHORT@@/Code/g' \ -e 's/@@NAME@@/code/g' \ - -e 's#@@EXEC@@#code#g' \ + -e 's#@@EXEC@@#code#g' \ -e 's/@@ICON@@/visual-studio-code/g' \ -e 's/@@URLPROTOCOL@@/vscode/g' \ -e 's/@@NAME_LONG@@/Visual Studio Code/g' \ From 3f0564fbc74de71fd6f8e2bf21505811c9d71002 Mon Sep 17 00:00:00 2001 From: Shikakiben <108907095+Shikakiben@users.noreply.github.com> Date: Tue, 4 Aug 2026 10:53:14 +0200 Subject: [PATCH 10/15] Remove unnecessary GitHub Copilot dependency From 82cbcf348df9b68d8b8ee1d18fce6ade0d973ae3 Mon Sep 17 00:00:00 2001 From: Shikakiben <108907095+Shikakiben@users.noreply.github.com> Date: Tue, 4 Aug 2026 14:40:54 +0200 Subject: [PATCH 11/15] Enhance make-appimage.sh with CLI routing logic Implement CLI script as a hook for VS Code launches, handling remote CLI and WSL prompts. --- make-appimage.sh | 60 ++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 51 insertions(+), 9 deletions(-) diff --git a/make-appimage.sh b/make-appimage.sh index 6af6a8c..7361995 100644 --- a/make-appimage.sh +++ b/make-appimage.sh @@ -13,20 +13,62 @@ export DEPLOY_OPENGL=1 export DEPLOY_VULKAN=1 # Deploy dependencies -# Protect the CLI script (bin/bin/code) from being overwritten by an Electron hardlink. -# quick-sharun skips non-executable files, so we make it non-executable temporarily. -chmod -x ./AppDir/bin/bin/code quick-sharun ./AppDir/bin/* -chmod +x ./AppDir/bin/bin/code -# Route all launches through the CLI script (bin/bin/code). -# This keeps CLI commands working and doesn't affect normal launch. -cat > ./AppDir/bin/cli-router.hook <<'EOF' -exec "$APPDIR/bin/bin/code" "$@" -EOF # Additional changes can be done in between here +# Implement the official code CLI script as a hook so every launch +# goes through cli.js (keeps CLI commands working, GUI unaffected). +# Paths are resolved from $APPDIR/bin since $0 is AppRun here. +cat > ./AppDir/bin/cli-router.hook <<'EOF' +# when run in remote terminal, use the remote cli +if [ -n "$VSCODE_IPC_HOOK_CLI" ]; then + REMOTE_CLI="$(which -a 'code' | grep /remote-cli/)" + if [ -n "$REMOTE_CLI" ]; then + "$REMOTE_CLI" "$@" + exit $? + fi +fi + +# test that VSCode wasn't installed inside WSL +if grep -qi Microsoft /proc/version && [ -z "$DONT_PROMPT_WSL_INSTALL" ]; then + echo "To use VS Code with the Windows Subsystem for Linux, please install VS Code in Windows and uninstall the Linux version in WSL. You can then use the \`code\` command in a WSL terminal just as you would in a normal command prompt." 1>&2 + printf "Do you want to continue anyway? [y/N] " 1>&2 + read -r YN + YN=$(printf '%s' "$YN" | tr '[:upper:]' '[:lower:]') + case "$YN" in + y | yes ) + ;; + * ) + exit 1 + ;; + esac + echo "To no longer see this prompt, start VS Code with the environment variable DONT_PROMPT_WSL_INSTALL defined." 1>&2 +fi + +# If root, ensure that --user-data-dir or --file-write is specified +if [ "$(id -u)" = "0" ]; then + for i in "$@" + do + case "$i" in + --user-data-dir | --user-data-dir=* | --file-write | tunnel | serve-web ) + CAN_LAUNCH_AS_ROOT=1 + ;; + esac + done + if [ -z "$CAN_LAUNCH_AS_ROOT" ]; then + echo "You are trying to start VS Code as a super user which isn't recommended. If this was intended, please add the argument \`--no-sandbox\` and specify an alternate user data directory using the \`--user-data-dir\` argument." 1>&2 + exit 1 + fi +fi + +ELECTRON="$APPDIR/bin/code" +CLI="$APPDIR/bin/resources/app/out/cli.js" +ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@" +exit $? +EOF + # Turn AppDir into AppImage quick-sharun --make-appimage From c68a928c188a01bcbad6795e784eec84ebd51b25 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 4 Aug 2026 13:00:30 +0000 Subject: [PATCH 12/15] bump `LATEST_VERSION` [skip ci] From 1ef65d0f831a7420b3e6b9cb8059b91b55ea38ba Mon Sep 17 00:00:00 2001 From: Samueru-sama Date: Tue, 4 Aug 2026 09:31:39 -0400 Subject: [PATCH 13/15] turn hook into a file in repo --- AppDir/bin/cli-router.hook | 47 ++++++++++++++++++++++++++++++++++ make-appimage.sh | 52 -------------------------------------- 2 files changed, 47 insertions(+), 52 deletions(-) create mode 100644 AppDir/bin/cli-router.hook diff --git a/AppDir/bin/cli-router.hook b/AppDir/bin/cli-router.hook new file mode 100644 index 0000000..7eeb1ee --- /dev/null +++ b/AppDir/bin/cli-router.hook @@ -0,0 +1,47 @@ +#!/bin/sh + +# when run in remote terminal, use the remote cli +if [ -n "$VSCODE_IPC_HOOK_CLI" ]; then + REMOTE_CLI="$(which -a 'code' | grep /remote-cli/)" + if [ -n "$REMOTE_CLI" ]; then + "$REMOTE_CLI" "$@" + exit $? + fi +fi + +# test that VSCode wasn't installed inside WSL +if grep -qi Microsoft /proc/version && [ -z "$DONT_PROMPT_WSL_INSTALL" ]; then + echo "To use VS Code with the Windows Subsystem for Linux, please install VS Code in Windows and uninstall the Linux version in WSL. You can then use the \`code\` command in a WSL terminal just as you would in a normal command prompt." 1>&2 + printf "Do you want to continue anyway? [y/N] " 1>&2 + read -r YN + YN=$(printf '%s' "$YN" | tr '[:upper:]' '[:lower:]') + case "$YN" in + y | yes ) + ;; + * ) + exit 1 + ;; + esac + echo "To no longer see this prompt, start VS Code with the environment variable DONT_PROMPT_WSL_INSTALL defined." 1>&2 +fi + +# If root, ensure that --user-data-dir or --file-write is specified +if [ "$(id -u)" = "0" ]; then + for i in "$@" + do + case "$i" in + --user-data-dir | --user-data-dir=* | --file-write | tunnel | serve-web ) + CAN_LAUNCH_AS_ROOT=1 + ;; + esac + done + if [ -z "$CAN_LAUNCH_AS_ROOT" ]; then + echo "You are trying to start VS Code as a super user which isn't recommended. If this was intended, please add the argument \`--no-sandbox\` and specify an alternate user data directory using the \`--user-data-dir\` argument." 1>&2 + exit 1 + fi +fi + +ELECTRON="$APPDIR/bin/code" +CLI="$APPDIR/bin/resources/app/out/cli.js" +ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@" +exit $? diff --git a/make-appimage.sh b/make-appimage.sh index 7361995..92a33f3 100644 --- a/make-appimage.sh +++ b/make-appimage.sh @@ -15,60 +15,8 @@ export DEPLOY_VULKAN=1 # Deploy dependencies quick-sharun ./AppDir/bin/* - # Additional changes can be done in between here -# Implement the official code CLI script as a hook so every launch -# goes through cli.js (keeps CLI commands working, GUI unaffected). -# Paths are resolved from $APPDIR/bin since $0 is AppRun here. -cat > ./AppDir/bin/cli-router.hook <<'EOF' -# when run in remote terminal, use the remote cli -if [ -n "$VSCODE_IPC_HOOK_CLI" ]; then - REMOTE_CLI="$(which -a 'code' | grep /remote-cli/)" - if [ -n "$REMOTE_CLI" ]; then - "$REMOTE_CLI" "$@" - exit $? - fi -fi - -# test that VSCode wasn't installed inside WSL -if grep -qi Microsoft /proc/version && [ -z "$DONT_PROMPT_WSL_INSTALL" ]; then - echo "To use VS Code with the Windows Subsystem for Linux, please install VS Code in Windows and uninstall the Linux version in WSL. You can then use the \`code\` command in a WSL terminal just as you would in a normal command prompt." 1>&2 - printf "Do you want to continue anyway? [y/N] " 1>&2 - read -r YN - YN=$(printf '%s' "$YN" | tr '[:upper:]' '[:lower:]') - case "$YN" in - y | yes ) - ;; - * ) - exit 1 - ;; - esac - echo "To no longer see this prompt, start VS Code with the environment variable DONT_PROMPT_WSL_INSTALL defined." 1>&2 -fi - -# If root, ensure that --user-data-dir or --file-write is specified -if [ "$(id -u)" = "0" ]; then - for i in "$@" - do - case "$i" in - --user-data-dir | --user-data-dir=* | --file-write | tunnel | serve-web ) - CAN_LAUNCH_AS_ROOT=1 - ;; - esac - done - if [ -z "$CAN_LAUNCH_AS_ROOT" ]; then - echo "You are trying to start VS Code as a super user which isn't recommended. If this was intended, please add the argument \`--no-sandbox\` and specify an alternate user data directory using the \`--user-data-dir\` argument." 1>&2 - exit 1 - fi -fi - -ELECTRON="$APPDIR/bin/code" -CLI="$APPDIR/bin/resources/app/out/cli.js" -ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@" -exit $? -EOF - # Turn AppDir into AppImage quick-sharun --make-appimage From 04a11051aba579c62035e3da36abd48f27910a23 Mon Sep 17 00:00:00 2001 From: Samueru-sama Date: Tue, 4 Aug 2026 09:52:18 -0400 Subject: [PATCH 14/15] improve hook script --- AppDir/bin/cli-router.hook | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/AppDir/bin/cli-router.hook b/AppDir/bin/cli-router.hook index 7eeb1ee..160270d 100644 --- a/AppDir/bin/cli-router.hook +++ b/AppDir/bin/cli-router.hook @@ -2,7 +2,19 @@ # when run in remote terminal, use the remote cli if [ -n "$VSCODE_IPC_HOOK_CLI" ]; then - REMOTE_CLI="$(which -a 'code' | grep /remote-cli/)" + REMOTE_CLI="" + _IFS=$IFS + IFS=: + for d in $PATH; do + case "$d" in + */remote-cli/*) + if REMOTE_CLI=$(PATH=$d command -v code); then + break + fi + ;; + esac + done + IFS=$_IFS if [ -n "$REMOTE_CLI" ]; then "$REMOTE_CLI" "$@" exit $? @@ -14,25 +26,20 @@ if grep -qi Microsoft /proc/version && [ -z "$DONT_PROMPT_WSL_INSTALL" ]; then echo "To use VS Code with the Windows Subsystem for Linux, please install VS Code in Windows and uninstall the Linux version in WSL. You can then use the \`code\` command in a WSL terminal just as you would in a normal command prompt." 1>&2 printf "Do you want to continue anyway? [y/N] " 1>&2 read -r YN - YN=$(printf '%s' "$YN" | tr '[:upper:]' '[:lower:]') case "$YN" in - y | yes ) - ;; - * ) - exit 1 - ;; + y|Y|yes|Yes|YES) :;; + *) exit 1;; esac echo "To no longer see this prompt, start VS Code with the environment variable DONT_PROMPT_WSL_INSTALL defined." 1>&2 fi # If root, ensure that --user-data-dir or --file-write is specified -if [ "$(id -u)" = "0" ]; then - for i in "$@" - do +if [ "$APPIMAGE_UID" = 0 ]; then + for i do case "$i" in - --user-data-dir | --user-data-dir=* | --file-write | tunnel | serve-web ) + --user-data-dir|--user-data-dir=*|--file-write|tunnel|serve-web) CAN_LAUNCH_AS_ROOT=1 - ;; + ;; esac done if [ -z "$CAN_LAUNCH_AS_ROOT" ]; then @@ -41,7 +48,7 @@ if [ "$(id -u)" = "0" ]; then fi fi -ELECTRON="$APPDIR/bin/code" -CLI="$APPDIR/bin/resources/app/out/cli.js" +ELECTRON=$APPDIR/bin/code +CLI=$APPDIR/bin/resources/app/out/cli.js ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@" exit $? From 2b76dfa5247239ce0c66f45220660ccc47197266 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 4 Aug 2026 14:10:35 +0000 Subject: [PATCH 15/15] bump `LATEST_VERSION` [skip ci]