mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
startkde: selectively export variables to the D-Bus activation environment
otherwise the variables may persist trough the Katana session (e.g. if D-Bus was not launched by `startkde`) and affect other desktop environments and X11 sessions Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
31f2eb9b81
commit
8741d1a7ec
1 changed files with 5 additions and 1 deletions
|
@ -129,7 +129,8 @@ XDG_CURRENT_DESKTOP=KDE
|
|||
export XDG_CURRENT_DESKTOP
|
||||
|
||||
# For session services that require X11, check for XDG_CURRENT_DESKTOP, etc.
|
||||
dbus-update-activation-environment --all
|
||||
dbus-update-activation-environment DISPLAY XAUTHORITY XDG_CURRENT_DESKTOP \
|
||||
KDE_FULL_SESSION KDE_SESSION_VERSION KDE_SESSION_UID
|
||||
|
||||
# Start kcminit_startup
|
||||
kcminit_startup
|
||||
|
@ -161,4 +162,7 @@ unset KDE_SESSION_VERSION
|
|||
xprop -root -remove KDE_SESSION_VERSION
|
||||
unset KDE_SESSION_UID
|
||||
|
||||
dbus-update-activation-environment XDG_CURRENT_DESKTOP="" \
|
||||
KDE_FULL_SESSION="" KDE_SESSION_VERSION="" KDE_SESSION_UID=""
|
||||
|
||||
echo 'startkde: Done.' 1>&2
|
||||
|
|
Loading…
Add table
Reference in a new issue