[Xfce4-commits] <xfce4-session:master> Exit errors should not terminate.
Nick Schermer
noreply at xfce.org
Sat Mar 24 22:50:05 CET 2012
Updating branch refs/heads/master
to a80698a8aea50390deb4e0104552e49b0b4d02e6 (commit)
from 3b6888784ccfb9045745e04057b367cdfd41493c (commit)
commit a80698a8aea50390deb4e0104552e49b0b4d02e6
Author: Nick Schermer <nick at xfce.org>
Date: Thu Dec 1 20:12:07 2011 +0100
Exit errors should not terminate.
xfce4-session/main.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/xfce4-session/main.c b/xfce4-session/main.c
index e7ac755..01ef93e 100644
--- a/xfce4-session/main.c
+++ b/xfce4-session/main.c
@@ -90,7 +90,7 @@ setup_environment (void)
sm = g_getenv ("SESSION_MANAGER");
if (sm != NULL && strlen (sm) > 0)
{
- fprintf (stderr, "xfce4-session: Another session manager is already running\n");
+ g_printerr ("%s: Another session manager is already running\n", PACKAGE_NAME);
exit (EXIT_FAILURE);
}
@@ -172,8 +172,8 @@ xfsm_dbus_init (void)
NULL);
if (DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER != ret)
{
- g_error ("Another session manager is already running");
- exit (1);
+ g_printerr ("%s: Another session manager is already running\n", PACKAGE_NAME);
+ exit (EXIT_FAILURE);
}
}
More information about the Xfce4-commits
mailing list