diff options
author | Tom Tromey <tromey@cygnus.com> | 1998-05-15 05:43:35 +0000 |
---|---|---|
committer | Tom Tromey <tromey@src.gnome.org> | 1998-05-15 05:43:35 +0000 |
commit | 5059776f92c5da4f8d6f86997893c0f92d166821 (patch) | |
tree | f8e1fc873cf3366939d304d122eb75eb989e49b1 /gnome-session/save-session.c | |
parent | c9adbb0deb9afd4e3adbe99466d80ca5c222d6b5 (diff) | |
download | gnome-session-5059776f92c5da4f8d6f86997893c0f92d166821.tar.gz |
Print error if couldn't connect to session manager.
Thu May 14 09:49:08 1998 Tom Tromey <tromey@cygnus.com>
* save-session.c (main): Print error if couldn't connect to
session manager.
Diffstat (limited to 'gnome-session/save-session.c')
-rw-r--r-- | gnome-session/save-session.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gnome-session/save-session.c b/gnome-session/save-session.c index 37fb35c6..6f5718a4 100644 --- a/gnome-session/save-session.c +++ b/gnome-session/save-session.c @@ -76,6 +76,13 @@ main (int argc, char *argv[]) gnome_init ("session", &parser, argc, argv, 0, NULL); + if (! GNOME_CLIENT_CONNECTED (client)) + { + fprintf (stderr, + _("save-session: couldn't connect to session manager\n")); + return 1; + } + gnome_client_set_restart_style (client, GNOME_RESTART_NEVER); /* We could expose more of the arguments to the user if we wanted to. Some of them aren't particularly useful. Interestingly, |