Registered Member
|
Hi folks,
I'm trying to get the konsole to display different --title's and --icon's depending upon user interaction (we set the user's $PATH to something different than the standard so they can try stuff out). I wanted to use the --title to display either the alternative path or a "clear text" name which explains what the path is, if that is available; the --icon is simply a pixmap which shows that something "different" is happening. My naive first attempt:
This seemed to work, at first, but then I noticed that subsequently launched konsoles displayed the "default" titles and icons if a konsole was already running. I suspect that this is a dbus issue and that I'm doing this all wrong & would appreciate any help. We are using konsole 2.3.3, KDE 4.3.5 if that makes a difference. Thanks, Surly |
Administrator
|
Konsole is a single process application - ie. all windows are operated by a single process. In this case, subsequent attempts to start Konsole probably aren't forwarding the --title and --icon arguments to the main Konsole process.
As a workaround to this, try passing the "--nofork" option to Konsole.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Thanks for the help, but when I start my program from a konsole session, I get this message:
Is there anyway to defeat the "KUniqueApplication" feature? |
Administrator
|
In this case - is your application running already? If it is not, then this indicates a problem.
If it is running, then you need to implement newInstance() in your application to allow for the launching of new windows as needed. As an interim workaround, launch it with the argument "--nofork" which will bypass unique D-Bus registration.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Many thanks! |
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]