mirror of
https://github.com/grassmunk/Chicago95.git
synced 2025-09-25 18:58:40 +02:00
adding --create to xfconf-query if that setting does not exist
This commit is contained in:
parent
edfa5e519d
commit
3782f6483e
15
installer.py
15
installer.py
@ -405,6 +405,8 @@ class InstallGUI:
|
|||||||
|
|
||||||
|
|
||||||
def xfconf_query(self, channel, prop, new_value):
|
def xfconf_query(self, channel, prop, new_value):
|
||||||
|
|
||||||
|
try:
|
||||||
xfconf_query_path = subprocess.check_output(["which", "xfconf-query"]).strip()
|
xfconf_query_path = subprocess.check_output(["which", "xfconf-query"]).strip()
|
||||||
print("Changing xfconf setting {}/{} to {}".format(channel, prop, new_value))
|
print("Changing xfconf setting {}/{} to {}".format(channel, prop, new_value))
|
||||||
args = [
|
args = [
|
||||||
@ -415,6 +417,19 @@ class InstallGUI:
|
|||||||
]
|
]
|
||||||
subprocess.check_call(args, stdout=subprocess.DEVNULL)
|
subprocess.check_call(args, stdout=subprocess.DEVNULL)
|
||||||
|
|
||||||
|
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,
|
||||||
|
"--channel", channel,
|
||||||
|
"--property", prop,
|
||||||
|
"--create",
|
||||||
|
"--set", new_value
|
||||||
|
]
|
||||||
|
subprocess.check_call(args, stdout=subprocess.DEVNULL)
|
||||||
|
|
||||||
def cancel_install(self, button):
|
def cancel_install(self, button):
|
||||||
print("cancelling install")
|
print("cancelling install")
|
||||||
Gtk.main_quit()
|
Gtk.main_quit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user