Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@ if $add_new_window ; then
new_args+=("--new-window")
fi

# If we're not running inside toolbox, default to normal 'code' binary
if [ ! -f /run/.containerenv ] ; then
exec flatpak run --command=code com.visualstudio.code "$@"
fi

flatpak="flatpak-spawn --host flatpak"
# shellcheck disable=SC1091,SC2154
container_name="$(. /run/.containerenv && echo "$name")"
Expand Down