[Konsole-devel] [Bug 80235] Want way to find session name from shell

Stephan Binner binner at kde.org
Mon Apr 26 19:31:42 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=80235      
binner kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      everconfirmed|0                           |1



------- Additional Comments From binner kde org  2004-04-26 21:31 -------
> SHELLPID=`ps -p $$ -l | tail -1 | awk "{ print \\\$5 }"` 
> KONSPID=`ps -p $SHELLPID -l | tail -1 | awk "{ print \\\$5 }"`

This looks bogus, SHELLPID is then PID of Konsole and KONSPID the PID of kdeinit process?

> SESSIONS=`dcop konsole-$KONSPID | grep ^session`

May I simply suggest SESSIONS=`dcop \`dcopclient $KONSOLE_DCOP\` | grep ^session`



More information about the konsole-devel mailing list