From 04473f607b8baf58160c6cbed11d5dc5ec88174c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 10 Mar 2011 19:17:14 -0500 Subject: [PATCH] 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 file changed, 5 insertions(+) diff --git a/src/gnome-shell-jhbuild.in b/src/gnome-shell-jhbuild.in index 3774777ab..f10a576ff 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)