Don't try to respawn metacity and the panel if we didn't kill them.

Also, don't crash out of the python script if metacity-clutter crashes
This commit is contained in:
Dan Winship 2009-02-26 13:08:42 -05:00
parent 84aec28575
commit 6676260308
2 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View File

@ -25,4 +25,5 @@ src/*-marshal.[ch]
src/Makefile
src/Makefile.in
src/gnomeshell-taskpanel
src/gnome-shell
stamp-h1

View File

@ -235,13 +235,16 @@ try:
print "Shell is dead"
except KeyboardInterrupt, e:
os.kill(shell.pid, signal.SIGKILL)
try:
os.kill(shell.pid, signal.SIGKILL)
except:
pass
shell.wait()
if options.verbose:
print "Shell killed"
finally:
if metacity_pid or gnome_panel_pid:
if not run_in_xephyr and (metacity_pid or gnome_panel_pid):
# Restart gnome-panel and window manager
if options.verbose:
print "Restarting Metacity and Gnome Panel"