Skip to content

Commit

Permalink
cinnamon-launcher: Run nm-applet during fallback session
Browse files Browse the repository at this point in the history
We need nm-applet when Cinnamon is dead, and we need it gone
when it comes back.
  • Loading branch information
clefebvre committed Nov 27, 2024
1 parent e58e37b commit 5b83ac2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions files/usr/bin/cinnamon-launcher
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ class Launcher:
else:
self.fb_pid = os.fork()
if self.fb_pid == 0:
# Start NM applet
if shutil.which("nm-applet"):
os.system("nm-applet &")
# Start the fallback panel
if panel_cmd is not None:
os.system(panel_cmd)
Expand Down Expand Up @@ -150,6 +153,7 @@ class Launcher:
if checkbutton.get_active():
os.environ["CINNAMON_TROUBLESHOOT"] = "1"
os.system("killall %s" % panel_process_name)
os.system("killall nm-applet")
os.system("kill %d" % self.fb_pid)
os.waitpid(self.fb_pid, 0)
self.restart_cinnamon()
Expand Down

0 comments on commit 5b83ac2

Please sign in to comment.