dcop questions : I found it (not realy :o( )

Kevin Krammer kevin.krammer at gmx.at
Fri Jul 2 12:31:52 BST 2004


On Friday 02 July 2004 06:00, Nicolas wrote:
> On Thursday 01 July 2004 22:59, Nicolas wrote:
> > I found it.  It's not realy clean, but it does the job.
> >
> > kstart -type Override konsole --script --profile log_no_deco
> > pid=$(expr $$ + 2)
> > konsole1=konsole-$pid
> >
> > then dcop $konsole .....
> >
> > Nic Cola
>
> the hack works if i only start one konsole. "$$" give the PID of the shell
> script.  I'd need the PID of the konsole...

You can get the PID of a session's shell by DCOP.
You could look through all sessions until the you find the PID you got by your 
construct above.

Cheers,
Kevin

-- 
Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
www.mrunix.de - Unix/Linux programming forum
www.qtforum.org - Qt programming forum
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde/attachments/20040702/f5ab20a0/attachment.sig>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


More information about the kde mailing list