mirror of
https://github.com/grassmunk/Chicago95.git
synced 2025-07-29 16:45:11 +02:00
Fixed handling of background colors and wallpaper errors so it does not crash
This commit is contained in:
parent
167f740480
commit
7d17d33412
20
installer.py
20
installer.py
@ -255,14 +255,18 @@ class InstallGUI:
|
|||||||
'0.500000' ,'-t' ,'double' ,'-s', '0.500000' ,'-t' ,'double' ,
|
'0.500000' ,'-t' ,'double' ,'-s', '0.500000' ,'-t' ,'double' ,
|
||||||
'-s' ,'1.000000']
|
'-s' ,'1.000000']
|
||||||
subprocess.check_call(args, stdout=subprocess.DEVNULL)
|
subprocess.check_call(args, stdout=subprocess.DEVNULL)
|
||||||
except:
|
except subprocess.CalledProcessError:
|
||||||
self.xfconf_query('xfce4-desktop', '/backdrop/screen0/monitor0/workspace0/image-style', "0")
|
try:
|
||||||
args = ['xfconf-query', '-c' ,'xfce4-desktop' ,
|
self.xfconf_query('xfce4-desktop', '/backdrop/screen0/monitor0/workspace0/image-style', "0")
|
||||||
'-p' ,'/backdrop/screen0/monitor0/workspace0/rgba1' ,
|
args = ['xfconf-query', '-c' ,'xfce4-desktop' ,
|
||||||
'-t' ,'double' ,'-s' ,'0.000000' ,'-t' ,'double' ,'-s' ,
|
'-p' ,'/backdrop/screen0/monitor0/workspace0/rgba1' ,
|
||||||
'0.500000' ,'-t' ,'double' ,'-s', '0.500000' ,'-t' ,'double' ,
|
'-t' ,'double' ,'-s' ,'0.000000' ,'-t' ,'double' ,'-s' ,
|
||||||
'-s' ,'1.000000']
|
'0.500000' ,'-t' ,'double' ,'-s', '0.500000' ,'-t' ,'double' ,
|
||||||
subprocess.check_call(args, stdout=subprocess.DEVNULL)
|
'-s' ,'1.000000']
|
||||||
|
subprocess.check_call(args, stdout=subprocess.DEVNULL)
|
||||||
|
except:
|
||||||
|
print("Could not update background. Set your background manually to #008080")
|
||||||
|
|
||||||
elif from_file == "install_cursors" and self.copy_files["install_cursors"]:
|
elif from_file == "install_cursors" and self.copy_files["install_cursors"]:
|
||||||
print("Enabling Cursors in XFCE4")
|
print("Enabling Cursors in XFCE4")
|
||||||
self.xfconf_query('xsettings', '/Gtk/CursorThemeName', "Chicago95_Cursor_White")
|
self.xfconf_query('xsettings', '/Gtk/CursorThemeName', "Chicago95_Cursor_White")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user