Create a custom desktop entry which launches the program with custom environment variables
The general process is:
/usr/share/applications/<application-name>.desktop) under ~/.local/share/applications/Exec: and then the name of the program.env GTK_THEME=<theme name> right after Exec: and put a space after it. ⚠️ Add the name of the theme, not the path to it. (Don’t ask me how much troubleshooting it took me to find out)/usr/share/applications/vscodium-bin.desktop
$ cp /usr/share/applications/vscodium-bin.desktop $HOME/.local/share/applications
$ vim $HOME/.local/share/applications/vscodium-bin.desktop
➜ It should look something like this:
[Desktop Entry]
Name=VSCodium
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/usr/share/vscodium-bin/bin/codium --unity-launch %F
Icon=vscodium
Type=Application
StartupNotify=true
StartupWMClass=VSCodium
Categories=Utility;Development;IDE;
MimeType=text/plain;inode/directory;
Actions=new-empty-window;
Keywords=vscode;
[Desktop Action new-empty-window]
Name=New Empty Window
Exec=/usr/share/vscodium-bin/bin/codium --new-window %F
Icon=vscodium
Exec: to make it look like this:[Desktop Entry]
Name=VSCodium
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=env GTK_THEME=deepin-dark /usr/share/vscodium-bin/bin/codium --unity-launch %F
Icon=vscodium
Type=Application
StartupNotify=true
StartupWMClass=VSCodium
Categories=Utility;Development;IDE;
MimeType=text/plain;inode/directory;
Actions=new-empty-window;
Keywords=vscode;
[Desktop Action new-empty-window]
Name=New Empty Window
Exec=env GTK_THEME=deepin-dark /usr/share/vscodium-bin/bin/codium --new-window %F
Icon=vscodium
Before:
After: