Bug 382116

Summary: konsole does not set KONSOLE_DBUS_WINDOW in sessions started with D-Bus
Product: [Applications] konsole Reporter: July Tikhonov <july.tikh>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 16.12.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description July Tikhonov 2017-07-08 07:41:13 UTC
Normally, bash running in konsole has some related variables exported:

$ env | grep KONSOLE
KONSOLE_DBUS_SERVICE=:1.285
KONSOLE_PROFILE_NAME=Profile 1
KONSOLE_DBUS_WINDOW=/Windows/1
KONSOLE_DBUS_SESSION=/Sessions/11

However, when I start a new session with qdbus:

$ qdbus ${KONSOLE_DBUS_SERVICE} ${KONSOLE_DBUS_WINDOW} newSession

in the new session one of the variables, KONSOLE_DBUS_WINDOW, is unavailable:

$ env | grep KONSOLE
KONSOLE_DBUS_SERVICE=:1.285
KONSOLE_PROFILE_NAME=Profile 1
KONSOLE_DBUS_SESSION=/Sessions/19

Always reproducible.
If I start a new session by regular means, such as shortcut or menu, the variable is available.
Comment 1 Kurt Hindenburg 2017-07-08 19:55:42 UTC
Thanks, also in master
Comment 2 Kurt Hindenburg 2017-07-08 20:44:31 UTC
Git commit 51cc49e95ebde8fde3f2cace9cf00cecf4b3da1e by Kurt Hindenburg.
Committed on 08/07/2017 at 20:43.
Pushed by hindenburg into branch 'master'.

Set KONSOLE_DBUS_WINDOW for new sessions started with DBus

M  +4    -0    src/ViewManager.cpp

https://commits.kde.org/konsole/51cc49e95ebde8fde3f2cace9cf00cecf4b3da1e