diff options
author | Gene Z. Ragan <gzr@eazel.com> | 2001-02-13 00:05:28 +0000 |
---|---|---|
committer | Gene Ragan <gzr@src.gnome.org> | 2001-02-13 00:05:28 +0000 |
commit | 217e4eb58a1484d2b3352b8a8621466e391f8ac9 (patch) | |
tree | 93010fa9eaa1a6da8a3106578fdb70fe9358cf5d /src | |
parent | ca945a3a6c26e5456276521709bcb956859c54e6 (diff) | |
download | nautilus-217e4eb58a1484d2b3352b8a8621466e391f8ac9.tar.gz |
Turn off repawn behavior in debug mode at request of Andy.
2001-02-12 Gene Z. Ragan <gzr@eazel.com>
Turn off repawn behavior in debug mode at request of Andy.
* src/nautilus-application.c: (set_session_restart):
Check for debug environment variable.
Diffstat (limited to 'src')
-rw-r--r-- | src/nautilus-application.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nautilus-application.c b/src/nautilus-application.c index 3ed4e08b2..cbd18921a 100644 --- a/src/nautilus-application.c +++ b/src/nautilus-application.c @@ -761,7 +761,13 @@ static void set_session_restart (GnomeClient *client, gboolean restart) { gnome_client_set_priority (client, 40); - gnome_client_set_restart_style (client, (restart ? GNOME_RESTART_IMMEDIATELY : GNOME_RESTART_NEVER)); + + if (g_getenv ("NAUTILUS_DEBUG") != NULL) { + /* Don't respawn in debug mode */ + gnome_client_set_restart_style (client, GNOME_RESTART_NEVER); + } else { + gnome_client_set_restart_style (client, (restart ? GNOME_RESTART_IMMEDIATELY : GNOME_RESTART_NEVER)); + } } static void |