From 5b83ac2f397c97d55a450184c0823e3ad5c9546e Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Wed, 27 Nov 2024 15:54:45 +0000 Subject: [PATCH] cinnamon-launcher: Run nm-applet during fallback session We need nm-applet when Cinnamon is dead, and we need it gone when it comes back. --- files/usr/bin/cinnamon-launcher | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/usr/bin/cinnamon-launcher b/files/usr/bin/cinnamon-launcher index 1f165a5c13..b12664c773 100755 --- a/files/usr/bin/cinnamon-launcher +++ b/files/usr/bin/cinnamon-launcher @@ -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) @@ -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()