mirror of
https://github.com/grassmunk/Chicago95.git
synced 2025-07-30 17:15:13 +02:00
adding check for xfconf-query, if it doesn't exist the script generates a bunch of warnings
This commit is contained in:
parent
a70cb7790b
commit
0096fe7327
@ -417,9 +417,15 @@ class InstallGUI:
|
||||
|
||||
|
||||
def xfconf_query(self, channel, prop, new_value):
|
||||
|
||||
|
||||
try:
|
||||
xfconf_query_path = subprocess.check_output(["which", "xfconf-query"]).strip()
|
||||
except:
|
||||
print("Warning: xfconf-query not installed, cannot auto-enable theme. Use your distros theme management to install Chicago95")
|
||||
return
|
||||
|
||||
try:
|
||||
|
||||
print("Changing xfconf setting {}/{} to {}".format(channel, prop, new_value))
|
||||
args = [
|
||||
xfconf_query_path,
|
||||
@ -431,7 +437,6 @@ class InstallGUI:
|
||||
|
||||
except subprocess.CalledProcessError:
|
||||
|
||||
xfconf_query_path = subprocess.check_output(["which", "xfconf-query"]).strip()
|
||||
print("Changing xfconf setting {}/{} to {}".format(channel, prop, new_value))
|
||||
args = [
|
||||
xfconf_query_path,
|
||||
|
Loading…
x
Reference in New Issue
Block a user