Only try to kill gnome-panel if it's running
This avoids crashing if it's not.
This commit is contained in:
parent
54a9b5ae4e
commit
629c35bd2a
@ -223,7 +223,8 @@ try:
|
|||||||
shell = start_xephyr()
|
shell = start_xephyr()
|
||||||
start_shell()
|
start_shell()
|
||||||
else:
|
else:
|
||||||
kill_gnome_panel(gnome_panel_pid)
|
if gnome_panel_pid is not None:
|
||||||
|
kill_gnome_panel(gnome_panel_pid)
|
||||||
shell = start_shell()
|
shell = start_shell()
|
||||||
|
|
||||||
# Wait for shell to exit
|
# Wait for shell to exit
|
||||||
|
Loading…
Reference in New Issue
Block a user