From efd469dd4befa2628cd048ffc0e76c597e11b3b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuncay=20=C3=87OLAK?= Date: Mon, 13 Sep 2021 16:35:23 +0300 Subject: [PATCH] deleted pulseaudio autostart file when unregistered --- src/base/registration/registration.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/base/registration/registration.py b/src/base/registration/registration.py index fac14cc..f65b918 100644 --- a/src/base/registration/registration.py +++ b/src/base/registration/registration.py @@ -630,6 +630,12 @@ class Registration: def delete_ahenk_pulseaudio_desktop_file(self): ahenkpulseaudio = "/etc/xdg/autostart/ahenk.pulseaudio.desktop" + pulseaudio_start_file = "/etc/xdg/autostart/ahenk.pulseaudio.start.desktop" + if self.util.is_exist(pulseaudio_start_file): + self.util.delete_file(pulseaudio_start_file) + self.logger.info("ahenk.pulseaudio.start.desktop autostart file deleted") + else: + self.logger.info("ahenk.pulseaudio.start.desktop autostart file doesn't exist") if self.util.is_exist(ahenkpulseaudio): self.util.delete_file(ahenkpulseaudio) self.logger.info("ahenk.pulseaudio.desktop autostart file deleted")