summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mate-screensaver.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mate-screensaver.c b/src/mate-screensaver.c
index cee3a97..34f26c6 100644
--- a/src/mate-screensaver.c
+++ b/src/mate-screensaver.c
@@ -48,7 +48,7 @@ int main(int argc, char **argv)
GError* error = NULL;
static gboolean show_version = FALSE;
- static gboolean no_daemon = FALSE;
+ static gboolean no_daemon = TRUE;
static gboolean debug = FALSE;
static GOptionEntry entries[] = {
@@ -88,7 +88,7 @@ int main(int argc, char **argv)
}
/* debug to a file if in deamon mode */
- gs_debug_init(debug, !no_daemon);
+ gs_debug_init(debug, FALSE);
gs_debug("initializing mate-screensaver %s", VERSION);
monitor = gs_monitor_new();
@@ -115,12 +115,6 @@ int main(int argc, char **argv)
exit(1);
}
- /* Don't close stdout and stderr for now */
- if (!no_daemon && daemon(0, 1))
- {
- g_error("Could not daemonize: %s", g_strerror (errno));
- }
-
gtk_main();
g_object_unref(monitor);