[gnome-shell] gnome-shell-jhbuild: exit 1 if gnome-shell-real failed



commit 04473f607b8baf58160c6cbed11d5dc5ec88174c
Author: Colin Walters <walters verbum org>
Date:   Thu Mar 10 19:17:14 2011 -0500

    gnome-shell-jhbuild: exit 1 if gnome-shell-real failed
    
    We need to be propagating the failure exit code so that
    gnome-session knows something went wrong.

 src/gnome-shell-jhbuild.in |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-shell-jhbuild.in b/src/gnome-shell-jhbuild.in
index 3774777..f10a576 100755
--- a/src/gnome-shell-jhbuild.in
+++ b/src/gnome-shell-jhbuild.in
@@ -548,3 +548,8 @@ try:
 finally:
     if options.replace and (options.perf or not normal_exit):
         restore_gnome()
+
+if normal_exit:
+    sys.exit(0)
+else:
+    sys.exit(1)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]