summaryrefslogtreecommitdiff
path: root/src/mate-screensaver.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-12 11:53:23 +0100
committerStefano Karapetsas <[email protected]>2012-11-12 11:53:23 +0100
commit77ac5c607d0f0562aad4ab9573c4b85003216c0c (patch)
tree3ec158159bae17ba143be52ef6eacea5146a795d /src/mate-screensaver.c
parent84cc7f6ebdb569b53decf944aa59108a68c75967 (diff)
downloadmate-screensaver-77ac5c607d0f0562aad4ab9573c4b85003216c0c.tar.bz2
mate-screensaver-77ac5c607d0f0562aad4ab9573c4b85003216c0c.tar.xz
remove daemonizing
it isn't needed and it breaks things like GSettings apparently. http://git.gnome.org/browse/gnome-screensaver/commit/?id=c0ad16d66f3d547a9a45818bc193a34c428e977b https://bugzilla.gnome.org/show_bug.cgi?id=644400
Diffstat (limited to 'src/mate-screensaver.c')
-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);