summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2016-07-12 13:47:54 +0200
committerOndrej Holy <oholy@redhat.com>2016-07-13 08:45:58 +0200
commit535f1e6b5d0d66c0361addde01775c04163fb59a (patch)
tree65faa4dc845c784639b41cbf922cda16bac7e9ee
parentad689ccd36b93f9649c2877a296d59cdee9eea46 (diff)
downloadgvfs-535f1e6b5d0d66c0361addde01775c04163fb59a.tar.gz
daemon: Enable debugging for the main daemon by GVFS_DEBUG
This is currently more-or-less just a cosmetic issue, because there aren't any debug prints in the main daemon, and because other daemons are spawned with the same enviroment. However this fixes debugging for the proposed admin daemon, because GVFS_DEBUG environment variable is not passed in pkexec environment.
-rw-r--r--daemon/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/main.c b/daemon/main.c
index 210031dd..12e3c4d6 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -197,6 +197,9 @@ main (int argc, char *argv[])
g_option_context_free (context);
+ if (g_getenv ("GVFS_DEBUG"))
+ debugging = TRUE;
+
gvfs_set_debug (debugging);
if (show_version)