[gnome-session] tools: Exit when gnome-session isn't available
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session] tools: Exit when gnome-session isn't available
- Date: Wed, 7 Nov 2012 13:13:47 +0000 (UTC)
commit f9ee9c6f4fa9bc749765eb06e41a13d08645e627
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 7 14:13:27 2012 +0100
tools: Exit when gnome-session isn't available
tools/gnome-session-inhibit.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tools/gnome-session-inhibit.c b/tools/gnome-session-inhibit.c
index f844e36..ff9d7d7 100644
--- a/tools/gnome-session-inhibit.c
+++ b/tools/gnome-session-inhibit.c
@@ -249,7 +249,8 @@ int main (int argc, char *argv[])
if (inhibit_flags == 0)
inhibit_flags = GSM_INHIBITOR_FLAG_IDLE;
- inhibit (app_id, reason, inhibit_flags);
+ if (inhibit (app_id, reason, inhibit_flags) == FALSE)
+ return 1;
if (!no_launch)
wait_for_child_app (argv + i);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]