Bug 135547 - Version of dcop-Command "newSession" which takes a "Name"-Parameter
Summary: Version of dcop-Command "newSession" which takes a "Name"-Parameter
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-12 23:56 UTC by Matthias Schniedermeyer
Modified: 2011-08-16 13:44 UTC (History)
1 user (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 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. ;-)