Skip to content

Commit 6ef02da

Browse files
bkoropoffdebarshiray
authored andcommitted
pkg/utils: Preserve environment variables set by a KDE session
A KDE session sets some environment variables to influence the behaviour of various programs and to access various settings [1]. eg., if the KDE_SESSION_VERSION environment variable is absent then applications won't respect KDE's theme or display scaling settings. These environment variables are not meant to be set by the shell's start-up scripts, but directly by KDE, and hence needs to be preserved across the host operating system and Toolbx container. [1] https://userbase.kde.org/KDE_System_Administration/Environment_Variables containers#1696 containers#1698
1 parent f1f7d9c commit 6ef02da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pkg/utils/utils.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ var (
9393
"HISTSIZE",
9494
"HISTTIMEFORMAT",
9595
"HOME",
96+
"KDE_FULL_SESSION",
97+
"KDE_SESSION_VERSION",
9698
"KONSOLE_VERSION",
9799
"LANG",
98100
"SHELL",

0 commit comments

Comments
 (0)