Only try to kill gnome-panel if it's running

This avoids crashing if it's not.
This commit is contained in:
Colin Walters 2009-02-25 12:54:14 -05:00
parent 54a9b5ae4e
commit 629c35bd2a

View File

@ -223,7 +223,8 @@ try:
shell = start_xephyr()
start_shell()
else:
kill_gnome_panel(gnome_panel_pid)
if gnome_panel_pid is not None:
kill_gnome_panel(gnome_panel_pid)
shell = start_shell()
# Wait for shell to exit