Bug 431090

Summary: KONSOLE_DBUS_SESSION and KONSOLE_DBUS_WINDOW the same for all konsole windows
Product: [Applications] konsole Reporter: Matthew Cline <matt>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal CC: cbc.alves, christoph
Priority: NOR    
Version First Reported In: 20.08.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Matthew Cline 2021-01-03 03:15:31 UTC
No matter how many konsole windows I open the environmental variables KONSOLE_DBUS_SESSION and KONSOLE_DBUS_WINDOW are always the same ("/Sessions/1" and "/Windows/1" respectively).  It used to be that they were different for different konsole instances, though I can't remember the latest version in which it worked that way.
Comment 1 Carlos Alves 2021-01-03 11:06:15 UTC
Testing here: KONSOLE_DBUS_SESSION is not always the same here, each tab and each window have a diferent session number, but KONSOLE_DBUS_WINDOW is always the same
Comment 2 Kurt Hindenburg 2021-02-09 04:06:59 UTC
How are you opening new windows?  It seems to work here regardless of how "Run all Konsole windows in a single process" is checked.

Note that I'm testing master.
Comment 3 Matthew Cline 2021-03-11 12:59:41 UTC
This problem happens when I:

1) Right-click the screen's background to get a context menu and select "konsole"

2) Press Alt-F2 to get krunner and enter "konsole"

3) Enter "konsole &" at the bash prompt in an existing konsole window.

However, if I have an existing konsole window focused and do "Ctrl-Shift-N" or select "File > New Window" from the menu THEN the environmental variables are set properly.
Comment 4 Christoph Cullmann 2025-08-25 16:02:35 UTC
Can not reproduce that in recent versions.