This forum has been archived. All content is frozen. Please use KDE Discuss instead.

konsole command line options

Tags: konsole konsole konsole
(comma "," separated)
Hal B.
Registered Member
Posts
4
Karma
0

konsole command line options

Mon May 25, 2009 8:43 pm
Can anybody give any hint on how to use the -p option? The help says:

-p Change the value of a profile property.

But no matter how hard I shake or how hard I dance, nothing seems to work. I want to use this in combo with --new-tab. Is there a property list somewhere? Thx.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

RE: konsole command line options

Tue May 26, 2009 4:39 am
You can probably find a list of properties in one of the profiles files located in the profiles folder ( $(kde4-config --localprefix)/share/apps/konsole )


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Hal B.
Registered Member
Posts
4
Karma
0

RE: konsole command line options

Wed May 27, 2009 1:33 am
bcooksley wrote:You can probably find a list of properties in one of the profiles files located in the profiles folder ( $(kde4-config --localprefix)/share/apps/konsole )


I had looked at that, but there were relatively few there (maybe 10), so I was thinking there might be more. What I'd *like* to do, is open a tab with --new-tab, change directories and then set the tab title. The last one is where I'm stuck and thought there might be a "property" for that. Thx.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

RE: konsole command line options

Wed May 27, 2009 5:36 am
You may need to change the title from the default to make it write the property names.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Hal B.
Registered Member
Posts
4
Karma
0

RE: konsole command line options

Thu May 28, 2009 1:06 am
Doesn't seem to save anything to disk. I am running konsole on gnome so maybe that effects things. Thx.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

RE: konsole command line options

Thu May 28, 2009 5:45 am
The two property values appear to be:
Code: Select all
[General]
Icon=utilities-terminal
LocalTabTitleFormat=%d : %n
MenuIndex=1
Name=Shell
Parent=FALLBACK/
RemoteTabTitleFormat=%h : %u


According to my Konsole profile.
The appropriate options look like "RemoteTabTitleFormat" and "LocalTabTitleFormat"

Last edited by bcooksley on Thu May 28, 2009 6:02 am, edited 1 time in total.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Hal B.
Registered Member
Posts
4
Karma
0

RE: konsole command line options

Fri May 29, 2009 12:27 am
bcooksley wrote:The two property values appear to be:
Code: Select all
[General]
Icon=utilities-terminal
LocalTabTitleFormat=%d : %n
MenuIndex=1
Name=Shell
Parent=FALLBACK/
RemoteTabTitleFormat=%h : %u


According to my Konsole profile.
The appropriate options look like "RemoteTabTitleFormat" and "LocalTabTitleFormat"


Ah! Excellent. The 'Format' in there threw me. I never would have associated that.

Since I got you handy, I have one more problem. I have multiple console windows open. No matter which window I 'konsole --new-tab', the tab is created in the first window opened, and not the one from which it was invoked. I don't see an option to control this. Or is it something else?

Thanks for the help.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

RE: konsole command line options

Fri May 29, 2009 6:40 am
You may be able to use Konsole's DBus interface to perform this. I believe it has options for parameters and creating new tabs.

Running konsole is always going to cause a new instance to be created unfortunately.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
sfitcs
Registered Member
Posts
7
Karma
0
bcooksley wrote:You may be able to use Konsole's DBus interface to perform this. I believe it has options for parameters and creating new tabs.


You can. But why when konsole cli will do the same things for you? :)

Running konsole is always going to cause a new instance to be created unfortunately.


You've been misinformed. e.g. the following will simply open a new konsole tab:-
Code: Select all
konsole --new-tab --p Icon=network-server -e ssh -t scott@sumserver screen -dR


Kind regards


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]