Session stuff
Benedikt Meurer
benedikt.meurer at unix-ag.uni-siegen.de
Mon Feb 21 10:49:56 CET 2005
Erik Harrison wrote:
> I know that there is some stuff in libxfce4gui for setting upi session
> support in an application - basically I just want mousepad to restart
> with the right file opened.
>
> Are there any docs, or will I have to figure it out for meself?
There's SessionClient in libxfcegui4, which offers X11R6 SM support, but
unfortunately lacks an easy way to change the
SmRestartCommand/SmCloneCommand, which is basicly what you need for
MousePad.
Therefore I'd suggest you use the ExoXsessionClient class from libexo
instead, it does exactly what you need, and mousepad will still start up
fast (as there's no ping-pong with the session manager on startup).
For a documentation, see:
http://os-cillation.com/documentation/api/libexo/0.2/ExoXsessionClient.html
it even contains exactly the example of a text editor. ;-)
If you don't want to depend on libexo, you can copy the
exo-xsession-client.[ch] files to your mousepad dir.
HTH,
Benedikt
More information about the Xfce4-dev
mailing list