Session Management



This should probably go to the devel list, but I can never remember what
should go where, so this list is always a safe bet :)

I'm trying to program session management into my app
this is the code I'm using
  gnome_client_set_restart_command (client, i, argv);
  gnome_client_set_clone_command (client, 0, NULL);

where argv[0] == ambiance, argv[1] == --session-restart and client comes
from the save_state parameter.

The problem is that whenever I close down GNOME with ambiance running,
2 copies restart.
One copy starts as "ambiance --session-restart" (because it reloads all the
attributes from the last session) and one copy just starts as "ambiance".
What am I doing wrong with my code?

Iain



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]