1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Fixed a bug with caching the local path to the image.

This commit is contained in:
Данила Скачедубов 2023-10-04 15:39:55 +04:00 committed by Valery Sinelnikov
parent 5bc8309abd
commit abad246ab2

View File

@ -217,9 +217,12 @@ def apply_for_widget(value, data, file_cache):
logdata = dict()
try:
if value in widget_utilities:
if value == 'wallpaperimage':
file_cache.store(data)
data = file_cache.get(data)
try:
if value == 'wallpaperimage':
file_cache.store(data)
data = file_cache.get(data)
except:
data = data
os.environ["XDG_DATA_DIRS"] = "/usr/share/kf5:"
#Variable for system detection of directories before files with .colors extension
os.environ["DISPLAY"] = ":0"