![]() |
![]() |
![]() |
Exo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
#include <exo/exo.h> ExoXsessionClient; ExoXsessionClient * exo_xsession_client_new_with_group (GdkWindow *leader
); GdkWindow * exo_xsession_client_get_group (ExoXsessionClient *client
); void exo_xsession_client_set_group (ExoXsessionClient *client
,GdkWindow *leader
); gboolean exo_xsession_client_get_restart_command (ExoXsessionClient *client
,gchar ***argv
,gint *argc
); void exo_xsession_client_set_restart_command (ExoXsessionClient *client
,gchar **argv
,gint argc
);
This module provides application developers with lightweight session management functions, based on the X11R5 session management protocol. The X11R5 session management protocol is very limited in its functionality and flexibility compared to the newer X11R6 session management protocol (XSMP), but - on the other hand - offers several advantages for applications that do not need the complicated features of the XSMP. Most importantly, the setup is much easier and faster than with XSMP, because no special actions must be taken.
So, in case your application is simple in its session management requirements, e.g. it only needs to tell the session manager its restart command, you may want to use the ExoXsessionClient instead of a full featured XSMP client.
Lets say, for example, you are developing a text editor, which should provide basic session management support, limited to proper restarting all editor windows that where left open when you logged off the X session. In case the user was editing a file when logging off, the same file should be opened in the window on next startup.