Bug 79243 - option to restrict konsole to a single instance
Summary: option to restrict konsole to a single instance
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.3.1
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 83027 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-07 16:53 UTC by Philipp Lehman
Modified: 2007-05-07 23:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Lehman 2004-04-07 16:53:49 UTC
Version:           1.3.1 (using KDE 3.2.1, compiled sources)
Compiler:          gcc version 2.95.4 20011002 (Debian prerelease)
OS:          Linux (i686) release 2.4.24

It would be very handy to have a global setting which restricts konsole to a single instance. When trying to launch a second instance, it would simply start an additional session on a new tab instead of bringing up a new window.
Comment 1 Kurt Hindenburg 2005-03-05 11:41:21 UTC
Why?  Would you expect the konsole window to be automatically moved to the current desktop (like KMail)?  I understand why KMail is unique (due to reading/locking/etc of emails).  I don't think it would be viable for konsole.
Comment 2 Philipp Lehman 2005-03-05 13:12:58 UTC
What I have in mind is the behavior of konqueror: if you run something like "konqueror openURL ..." and there is already a konqueror window on the active virtual desktop, you get a new tab. If there is no konqueror window on the current virtual desktop, you get a new window.

This way you can simply define a single keyboard shortcut and it automatically does the obvious thing. To some extend, this behavior can be emulated with konsole via dcop scripting, but not entirely.

I should have been more explicit in the original report. To sum that up, what I have in mind could be paraphrased as "optionally reuse active konsole instance à la konqueror".
Comment 3 esigra 2006-08-16 22:45:35 UTC
*** This bug has been confirmed by popular vote. ***
Comment 4 Robert Knight 2007-02-10 03:08:25 UTC
Under KDE 4, Konsole will be a single-instance application, but that is not actually what this report is asking for.

This report is asking for a single-window application, which is slightly different. 
Comment 5 Robert Knight 2007-02-10 03:10:03 UTC
*** Bug 83027 has been marked as a duplicate of this bug. ***
Comment 6 Freddie Cash 2007-04-14 00:39:51 UTC
Would this allow one to write a script that opened multiple sessions (tabs) in a single Konsole window, and execute ssh connections to different servers using the -e commandline option?

For instance, it'd be really nice to be able to do something like the following:
#!/bin/sh

konsole -e nano -tabtitle "Local"
for I in someserver1 someserver2 someserver3
  konsole -e "ssh $I" -newtab -tabtitle "$I"
done

Then one could set the Local tab to "Send input to all other sessions" and manage multiple servers.

Currently, I can load console with a bunch of sessions running, with named tabs, but I have to manually run ssh from within each tab.  :(

AFAICT, there's also no way to do this via DCOP, as one can't tell a session to run a command.

Cheers
Freddie
Comment 7 Robert Knight 2007-05-07 23:58:14 UTC
Implemented in KDE 4 using the KUniqueApplication framework.