We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e52ec1b commit c35db03Copy full SHA for c35db03
1 file changed
fonksiyonlar.py
@@ -68,13 +68,15 @@ def change(mode):
68
print(display_manager)
69
add = ""
70
location = getLocation()
71
+ print(location)
72
if display_manager == "sddm":
73
add = "--dm sddm"
74
cmd = f"""#!/bin/bash
75
echo 'Lütfen şifrenizi giriniz'
76
sudo python3 {location}/envycontrol.py -s {mode} {add}
77
exit
78
"""
79
+ print(cmd)
80
subprocess.Popen(['x-terminal-emulator', '-e',
81
f'bash -c "echo \'{cmd}\' > betik.sh && chmod +x betik.sh && ./betik.sh; exec bash"'], cwd="/tmp/")
82
@@ -134,6 +136,6 @@ def change_brightness(window, val):
134
136
135
137
def getLocation():
138
if os.path.exists("/opt/surucu-ayar/envycontrol.py"):
- return "/opt/surucu-ayar/envycontrol.py"
139
+ return "/opt/surucu-ayar"
140
else:
141
return os.getcwd()
0 commit comments