mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 03:52:17 +03:00
deleted pulseaudio autostart file when unregistered
This commit is contained in:
parent
423faea01a
commit
efd469dd4b
1 changed files with 6 additions and 0 deletions
|
@ -630,6 +630,12 @@ class Registration:
|
||||||
|
|
||||||
def delete_ahenk_pulseaudio_desktop_file(self):
|
def delete_ahenk_pulseaudio_desktop_file(self):
|
||||||
ahenkpulseaudio = "/etc/xdg/autostart/ahenk.pulseaudio.desktop"
|
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):
|
if self.util.is_exist(ahenkpulseaudio):
|
||||||
self.util.delete_file(ahenkpulseaudio)
|
self.util.delete_file(ahenkpulseaudio)
|
||||||
self.logger.info("ahenk.pulseaudio.desktop autostart file deleted")
|
self.logger.info("ahenk.pulseaudio.desktop autostart file deleted")
|
||||||
|
|
Loading…
Reference in a new issue