优化快捷方式生成方式

This commit is contained in:
2023-06-29 20:11:20 +08:00
parent 1310253f0f
commit 1f7d53bf4d
5 changed files with 14 additions and 9 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ def Save():
os.mknod("{}/.config/gx-env/nosandbox".format(homePath))
if not allCommandAddNoSandbox.isChecked() and os.path.exists("{}/.config/gx-env/nosandbox".format(homePath)):
os.remove("{}/.config/gx-env/nosandbox".format(homePath))
os.system("pkexec env `printenv` gx-env-run")
os.system("pkexec env `gx-env-show-env-list` gx-env-run")
QtWidgets.QMessageBox.information(window, "提示", "设置完成!")
except: