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

How to kill a specific konsole window?

Tags: konsole konsole konsole
(comma "," separated)
bjoern
Registered Member
Posts
6
Karma
0
OS
Hello,

I had several Konsole windows open.
Then I started another one with:

Code: Select all
"konsole --name foo --profile bar"


I wanted to kill this specific konsole Window:

Code: Select all
exec ps ax | grep "konsole --name foo --profile bar" | awk '{print $1}' | xargs -i kill {} 2&>/dev/null;


But this kills all windows, because there's only one PID for all windows.
Is there any way to kill only one konsole window?

Thanks!


bjoern, proud to be a member of KDE forums since 2008-Oct.
User avatar
google01103
Manager
Posts
6668
Karma
25
it could be that konsole is a "single instance" app see http://kdemonkey.blogspot.com/2007/12/m ... gging.html

but in my testing opening a konsole window from a konsole window creates a 2nd instance but opening from krunner does not

~/MyTemp> konsole --name foo1&
[1] 3826
~/MyTemp> ps aux|grep konsole
3829 0.2 0.5 292892 21072 pts/3 Sl 08:35 0:00 konsole --name foo1
3906 0.0 0.0 7396 844 pts/3 S+ 08:37 0:00 grep konsole
5562 0.0 0.6 306120 28060 ? RNl Jun25 0:03 /usr/bin/konsole -session 10d8dc7263000127418770800000308270024_1277417375_393092


OpenSuse Leap 42.1 x64, Plasma 5.x

bjoern
Registered Member
Posts
6
Karma
0
OS
Ahh, starting a new konsole from within a konsole window helps!

Thank you, google01103!


bjoern, proud to be a member of KDE forums since 2008-Oct.


Bookmarks



Who is online

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