Make installation undependable from tweaks

Updated copyright years ("better late than never" ahh change)
This commit is contained in:
Vladyslav Hroshev
2024-09-01 21:21:46 +03:00
parent 4d2269664c
commit 7c7a474ad0
10 changed files with 141 additions and 39 deletions

View File

@@ -159,6 +159,9 @@ class GlobalTheme:
:param sat: color saturation
"""
if os.geteuid() != 0:
raise Exception("Root privileges required to install GDM theme")
if self.__is_installed():
print("Theme is installed. Reinstalling...")
self.gst += ".backup"