LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Howto get current Konsole information (https://www.linuxquestions.org/questions/linux-general-1/howto-get-current-konsole-information-722056/)

LordRaiden 04-27-2009 01:56 PM

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?

{BBI}Nexus{BBI} 04-27-2009 05:00 PM

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.

LordRaiden 04-27-2009 06:12 PM

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?

LordRaiden 05-07-2009 11:16 AM

Anyone... anyone... Beuller?


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


All times are GMT -5. The time now is 03:51 PM.