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

konsole command line options

Tags: konsole konsole konsole
(comma "," separated)
xargs
Registered Member
Posts
4
Karma
0
OS

konsole command line options

Sat Jul 17, 2010 11:37 pm
I'm trying to add a konsole launcher to the KDE menu which has command line options for konsole.

If I have a konsole window open, and run "konsole --title foo" in it, I get a new konsole window with the expected title.

If I use the KDE Menu Editor to create a new entry with "konsole --title foo" in the Command field, that menu entry will launch a konsole window with the default title, not "foo".

However, I've noticed that if I close all of my konsole windows, then run the above menu entry, I get a konsole window with the expected title. In other words, the command line options don't work from the menu if konsole is already running.

What can I do to get the command line options working from the menu if konsole is already running?
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: konsole command line options

Sun Jul 18, 2010 12:47 am
this may help viewtopic.php?f=22&t=88745 & http://kdemonkey.blogspot.com/2007/12/m ... gging.html

has to do with konsole being a single-instance application, if kde sees konsole is already running it has the existing one start a child process not a separate instance. but creating a new konsole from within konsole does create a new instance. itdoes not appear there any options to change this behavior.


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
google01103
Manager
Posts
6668
Karma
25

Re: konsole command line options

Sun Jul 18, 2010 1:04 am
this bug report may explain why it is as it is https://bugs.kde.org/show_bug.cgi?id=184964#c7 especially note Robert Knight's comments as he is one of the developers of Konsole


OpenSuse Leap 42.1 x64, Plasma 5.x

xargs
Registered Member
Posts
4
Karma
0
OS

Re: konsole command line options

Sun Jul 18, 2010 1:44 am
Thanks, that explains it.

I got what I wanted by doing "konsole -e konsole --nofork <other options I wanted>. But that creates an intermediate konsole window that's "dead" and can't be closed without killing the child window.

For some reason "konsole -e konsole" doesn't work. The window opens and closes immediately.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell