Bug 135547

Summary: Version of dcop-Command "newSession" which takes a "Name"-Parameter
Product: [Applications] konsole Reporter: Matthias Schniedermeyer <ms>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED UNMAINTAINED    
Severity: wishlist CC: adaptee
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Matthias Schniedermeyer 2006-10-12 23:56:55 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Debian testing/unstable Packages

I want to instanciate a Konsole-Window with several Sub-konsoles.

That would be a bit easier if i could start sub-konsoles with a name

Currently i do the following:
konsole --ls -T "xyz"
In my.profil i have a "name=`dcop ... sessionName`" and then a "case" which executes the needed commands based on that name.

When i want several sub-windows i have to do the following:
use a "magic" sessionName.
in the .profile is a loop that starts as many "newSession"s as needed.
In the .profile of the sub-konsoles i must use a "if sessionName=Shell" and "if dcop ... session-1 sessionName=magic" to see if this sub-konsole is actually a special-one and then "renameSession" it to the name i would have liked to use with newSession and then "exec /bin/bash --login" to start over the .profile which then executes the correct commands based on the updated sessionName.

Fortunaly i currently only have >= 3 sub-window-konsoles with sessions 2 .. x doing the same.
Otherwise i would also have to use for the "sessionCount" to set the correct sub-konsole-names.

Finally when the "magic" Session is done it "dcop ... renameSession" itself to it's final name and "exec /bin/bash --login" to finalize it.
Comment 1 Robert Knight 2006-10-13 01:45:06 UTC
What information is contained in the session name and how many different possibilities are there?
Comment 2 Matthias Schniedermeyer 2006-10-13 10:17:42 UTC
The String that is shown in the Tab-Bar where you can switch between the sub-konsoles.

I (always) name my tabs by the task i indent to do with it.
So the names are infinite(tm) or at least only constraint by the charset and string-length. ;-)