You can create a store all vscode data in one directory by setting the environment variables VSCODE_PORTABLE VSCODE_CLI_DATA_DIR, this works best for multiple vscode versions.. and it won't create .vscode-oss in the home directory and VSCodium in the $XDG_CONFIG_DIR
~/.local/bin/codium:
#!/usr/bin/bash
export VSCODE_PORTABLE=/home/"user"/.local/vscodium && mkdir -p "$VSCODE_PORTABLE"
export VSCODE_CLI_DATA_DIR=/home/"user"/.local/vscodium/cli && mkdir -p "$VSCODE_CLI_DATA_DIR"
IFS=$'{\n}'
/usr/bin/codium $@
You can now create .desktop file the uses path codium instead of /usr/bin/codium
Pinned Comments
3EiedD commented on 2025-10-18 13:44 (UTC) (edited on 2025-10-18 13:49 (UTC) by 3EiedD)
You can create a store all vscode data in one directory by setting the environment variables
VSCODE_PORTABLEVSCODE_CLI_DATA_DIR, this works best for multiple vscode versions.. and it won't create .vscode-oss in the home directory and VSCodium in the $XDG_CONFIG_DIR~/.local/bin/codium:
You can now create .desktop file the uses path codium instead of /usr/bin/codium
Damgaldor commented on 2025-08-08 03:14 (UTC)
All the
vscodiumpackages storeproduct.jsonin different places, so you can check if yourvscodiumpackage is supported invscodium-xdg-dir-patch.sh. This package is intended to be compatible with allvscodiumpackages, so if your package is not in the list or/and doesn't get patched - make a comment.This package is not intended for
visual-studio-code-bin(vscode) orcode(vscode-oss).