disabled lockscreen wallpapers

parent eed6e047
Pipeline #249053 failed with stage
in 2 minutes and 19 seconds
......@@ -95,23 +95,11 @@ class ConfManager(metaclass=Singleton):
f'{Env.get("XDG_CONFIG_HOME")}/org.gabmus.hydrapaper.json'
)
self.cache_path = f'{Env.get("XDG_CACHE_HOME")}/hydrapaper'
self.gnome_version_path = \
'/run/host/usr/share/gnome/gnome-version.xml'
else:
self.path = Path(f'{Env.get("HOME")}/.config/hydrapaper.json')
self.cache_path = f'{Env.get("HOME")}/.cache/hydrapaper'
self.gnome_version_path = '/usr/share/gnome/gnome-version.xml'
self.thumbs_cache_path = f'{self.cache_path}/thumbnails/'
if isfile(self.gnome_version_path):
with open(self.gnome_version_path, 'r') as fd:
for line in fd.readlines():
if '<minor>' in line:
self.has_lockscreen_wallpaper = (
'36' not in line or '38' not in line
)
break
else:
self.has_lockscreen_wallpaper = True
self.has_lockscreen_wallpaper = False
self.conf = None
if isfile(str(self.path)):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment