Package Details: vscodium-xdg-dir-patch 1.0.0-3

Git Clone URL: https://aur.archlinux.org/vscodium-xdg-dir-patch.git (read-only, click to copy)
Package Base: vscodium-xdg-dir-patch
Description: Patch for VSCodium to store data in ~/.local/share/codium
Upstream URL: None
Keywords: codium vscodium
Licenses: GPL-3.0-only
Submitter: Damgaldor
Maintainer: Damgaldor
Last Packager: Damgaldor
Votes: 5
Popularity: 0.51
First Submitted: 2025-08-08 03:07 (UTC)
Last Updated: 2025-08-14 00:07 (UTC)

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_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

Damgaldor commented on 2025-08-08 03:14 (UTC)

All the vscodium packages store product.json in different places, so you can check if your vscodium package is supported in vscodium-xdg-dir-patch.sh. This package is intended to be compatible with all vscodium packages, 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) or code (vscode-oss).

Latest 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_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

Damgaldor commented on 2025-08-08 03:14 (UTC)

All the vscodium packages store product.json in different places, so you can check if your vscodium package is supported in vscodium-xdg-dir-patch.sh. This package is intended to be compatible with all vscodium packages, 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) or code (vscode-oss).