summaryrefslogtreecommitdiff
path: root/src/nautilus-main.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2010-10-27 18:36:54 +0200
committerCosimo Cecchi <cosimoc@gnome.org>2010-10-30 16:29:14 +0200
commit8d9d6128b69e641c2b77322e8832be8ae0b9bf93 (patch)
tree52aa353af8898e1e73c8ec1b2c868d047fac1b94 /src/nautilus-main.c
parent13630f0b4d58e3b2be6781f3049d13c1095b0dca (diff)
downloadnautilus-8d9d6128b69e641c2b77322e8832be8ae0b9bf93.tar.gz
application: properly handle --no-default-window
Diffstat (limited to 'src/nautilus-main.c')
-rw-r--r--src/nautilus-main.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/nautilus-main.c b/src/nautilus-main.c
index ad169bf38..a6da420ba 100644
--- a/src/nautilus-main.c
+++ b/src/nautilus-main.c
@@ -224,11 +224,7 @@ setup_debug_log (void)
int
main (int argc, char *argv[])
{
- gboolean no_default_window;
- gboolean no_desktop;
- gboolean autostart_mode;
gint retval;
- const char *autostart_id;
NautilusApplication *application;
#if defined (HAVE_MALLOPT) && defined(M_MMAP_THRESHOLD)
@@ -260,21 +256,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- autostart_mode = FALSE;
-
- autostart_id = g_getenv ("DESKTOP_AUTOSTART_ID");
- if (autostart_id != NULL && *autostart_id != '\0') {
- autostart_mode = TRUE;
- }
-
- /* If in autostart mode (aka started by gnome-session), we need to ensure
- * nautilus starts with the correct options.
- */
- if (autostart_mode) {
- no_default_window = TRUE;
- no_desktop = FALSE;
- }
-
g_set_prgname ("nautilus");
if (g_file_test (DATADIR "/applications/nautilus.desktop", G_FILE_TEST_EXISTS)) {