[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: Fix the version number output on the commandline
noreply at xfce.org
noreply at xfce.org
Sun Aug 17 02:12:39 CEST 2014
This is an automated email from the git hooks/post-receive script.
ochosi pushed a commit to branch master
in repository xfce/xfce4-power-manager.
commit 64cd25f7d31ecbb82f53bceac0e5596338b431e9
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sun Aug 17 02:09:49 2014 +0200
Fix the version number output on the commandline
This was broken in commit 216a5b75 by moving the forking before printing
the version string.
---
src/xfpm-main.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/xfpm-main.c b/src/xfpm-main.c
index b0af887..04fa5cd 100644
--- a/src/xfpm-main.c
+++ b/src/xfpm-main.c
@@ -287,13 +287,15 @@ int main (int argc, char **argv)
g_option_context_free(octx);
+ if ( version )
+ show_version ();
+
/* Fork if needed */
if ( dump == FALSE && debug == FALSE && no_daemon == FALSE && daemon(0,0) )
{
g_critical ("Could not daemonize");
}
-
/* Initialize */
dbus_g_thread_init ();
@@ -317,11 +319,6 @@ int main (int argc, char **argv)
return EXIT_FAILURE;
}
-
- if ( version )
- {
- show_version ();
- }
xfpm_debug_init (debug);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list