Commit 61183c73 authored by Kevin Whitaker's avatar Kevin Whitaker
Browse files

remove extra string quotes that confused bash.

parent b9027ae4
......@@ -55,12 +55,12 @@ class MainWindow(QtWidgets.QWidget):
@QtCore.Slot()
def change_head_color(self, new_color):
color = "{0:0{1}x}".format(new_color.red(),2) + "{0:0{1}x}".format(new_color.green(),2) + "{0:0{1}x}".format(new_color.blue(),2)
subprocess.run(["pkexec", "bash", "-c", "\"echo "+color+" > /sys/devices/platform/alienware-wmi/rgb_zones/"+"zone00\""])
subprocess.run(["pkexec", "bash", "-c", "echo "+color+" > /sys/devices/platform/alienware-wmi/rgb_zones/"+"zone00"])
@QtCore.Slot()
def change_logo_color(self, new_color):
color = "{0:0{1}x}".format(new_color.red(),2) + "{0:0{1}x}".format(new_color.green(),2) + "{0:0{1}x}".format(new_color.blue(),2)
subprocess.run(["pkexec", "bash", "-c", "\"echo "+color+" > /sys/devices/platform/alienware-wmi/rgb_zones/"+"zone01\""])
subprocess.run(["pkexec", "bash", "-c", "echo "+color+" > /sys/devices/platform/alienware-wmi/rgb_zones/"+"zone01"])
if __name__ == "__main__":
......
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