LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 04-27-2009, 01:56 PM   #1
LordRaiden
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:
Code:
kon=$(dcop "konsole*" | tail -1)
But that often is not the id for the konsole I am currently working in.

Anyone?
 
Old 04-27-2009, 05:00 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 3 / CrunchBang Linux 10 Statler / Easy Peasy
Posts: 4,293

Rep: Reputation: 205Reputation: 205Reputation: 205
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
LordRaiden
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.

i.e.:
Code:
> dcop
konsole-19107
kwin
kicker
konsole-2606
kdesktop
konsole-5546
So how do I know (via scripting) which one is my current konsole?
 
Old 05-07-2009, 11:16 AM   #4
LordRaiden
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.
 
  


Reply

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
howto set konsole table name[sles 10] edenCC Suse/Novell 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 balasquare@yahoo.com 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 08:42 AM.

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