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, 01: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, 05:00 PM   #2
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 5, Linux Lite
Posts: 4,312

Rep: Reputation: 208Reputation: 208Reputation: 208
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, 06: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, 11:16 AM   #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 08:36 PM
Bash: set Konsole window title to current command bforbes Programming 5 04-19-2006 11:44 AM
How to get the current process information Programming 4 09-29-2005 04:39 AM
Open current directory from konsole to konqueror? gflores Linux - Newbie 4 02-21-2005 11:18 PM
howto, kde konsole copyand paste stabu Linux - Newbie 4 05-07-2004 06:22 AM

All times are GMT -5. The time now is 01:56 AM.

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