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.
Thanks, also in master
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