[Konsole-devel] [Bug 297801] New: konsole does not always honor '--display'

jcwoods at gmail.com jcwoods at gmail.com
Mon Apr 9 20:15:21 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=297801

            Bug ID: 297801
          Severity: normal
           Version: unspecified
          Priority: NOR
          Assignee: konsole-devel at kde.org
           Summary: konsole does not always honor '--display'
    Classification: Unclassified
                OS: Linux
          Reporter: jcwoods at gmail.com
          Hardware: Other
            Status: UNCONFIRMED
         Component: general
           Product: konsole

I have two screens (:0.0 and :0.1) on two physical monitors.  When I run
"konsole --display :0.0" or "konsole --display :0.1" from an existing konsole,
I can open a new konsole on the desired screen.

I have created two new menu items using kmenuedit called "konsole :0.0" and
"konsole :0.1" so that I can easily launch a new konsole on either screen from
a menu shortcut.  The desktop shortcuts for these look like this:

$ cat ~/.local/share/applications/konsole.desktop
[Desktop Entry]
Comment=
Exec=/usr/bin/konsole --display :0.0 
GenericName=Terminal
Icon=utilities-terminal
Name=Konsole :0.0
NoDisplay=false
Path[$e]=
StartupNotify=true
Terminal=0
TerminalOptions=
Type=Application
X-DBUS-StartupType=Unique
X-DocPath=konsole/index.html
X-KDE-AuthorizeAction=shell_access
X-KDE-StartupNotify=true
X-KDE-SubstituteUID=false
X-KDE-Username=


and


$ cat ~/.local/share/applications/konsole-2.desktop 
[Desktop Entry]
Comment=/home/jxw82/scripts/konsole-0.1.sh
Exec=/usr/bin/konsole --display :0.1
GenericName=Terminal
Icon=utilities-terminal
Name=Konsole :0.1
NoDisplay=false
Path[$e]=
StartupNotify=true
Terminal=0
TerminalOptions=
Type=Application
X-DBUS-StartupType=Unique
X-DocPath=konsole/index.html
X-KDE-AuthorizeAction=shell_access
X-KDE-StartupNotify=true
X-KDE-SubstituteUID=false
X-KDE-Username=


When I use either of these menu items, the konsole will display on the active
display REGARDLESS of the "--display" setting in the "Exec=" line.  For
instance, if I use the K-menu on screen 0:0 to launch the "Konsole 0.1"
shortcut, the konsole appears on :0.0.

In troubleshooting this issue, I've gone as far as writing scripts to wrap the
launching of konsole with bash and capture and/or manipulate the environment:


$ cat konsole-0.0.sh
#!/bin/bash

env | sort > /tmp/konsole-0.0.$$
exec /usr/bin/konsole --display :0.0

$ cat konsole-0.1.sh
#!/bin/bash

env | sort > /tmp/konsole-0.1.$$
exec /usr/bin/konsole --display :0.1


As before, everything works when I run these scripts from the command line. 
When I add these scripts as menu entries and launch them from the menu, they do
not work (konsole pops up on wrong screen).

Diff'ing the environment files generated by these scripts show there are a
handful of differences.  I've modified the scripts to unset and/or modify the
values which do not match, but I get the same result.

This may not be a problem with konsole itself, but I don't know how to dig
further.  Could it be an issue with the kde launcher?  What can I do to gather
additional diagnostic information?

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the konsole-devel mailing list