Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-27-2009, 02:56 PM   #1
LQ Newbie
Registered: Apr 2009
Posts: 5

Rep: Reputation: 0
Howto get current Konsole information

From searching on here I've gotten a lot of good information on using dcop on a konsole to manipulate sessions.

Such as starting a new konsole, opening a new session, etc.

But what I can't find is how to get the id of the current konsole I am in? I don't want to start a new konsole, only a new session. To do that I need the current konsole id. Anyone know how to do that?

Now, I can get the id for the most recent konsole using:
kon=$(dcop "konsole*" | tail -1)
But that often is not the id for the konsole I am currently working in.

Old 04-27-2009, 06:00 PM   #2
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 5, Linux Lite
Posts: 4,312

Rep: Reputation: 210Reputation: 210Reputation: 210
Issuing dcop will show your current konsole id.

Issuing dcop konsole-<konsole id here> will show the sessions running under that konsole id.

I hope this is what you were looking for.
Old 04-27-2009, 07:12 PM   #3
LQ Newbie
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Issuing dcop with show all of the konsole id's, not just the one I am using.

> dcop
So how do I know (via scripting) which one is my current konsole?
Old 05-07-2009, 12:16 PM   #4
LQ Newbie
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Anyone... anyone... Beuller?

I was hoping there would be some sort of kluge for this.


dcop, konsole

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
howto set konsole table name[sles 10] edenCC SUSE / openSUSE 1 06-09-2007 09:36 PM
Bash: set Konsole window title to current command bforbes Programming 5 04-19-2006 12:44 PM
How to get the current process information Programming 4 09-29-2005 05:39 AM
Open current directory from konsole to konqueror? gflores Linux - Newbie 4 02-22-2005 12:18 AM
howto, kde konsole copyand paste stabu Linux - Newbie 4 05-07-2004 07:22 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration