Compare commits
1 Commits
master
...
fix-pkexec
Author | SHA1 | Date | |
---|---|---|---|
|
29d14c01d1 |
@ -348,6 +348,11 @@ class ApplicationLauncher(easyButton):
|
|||||||
if os.path.exists("/usr/bin/mate-terminal"):
|
if os.path.exists("/usr/bin/mate-terminal"):
|
||||||
cmd = "mate-terminal -e \"" + self.appExec + "\""
|
cmd = "mate-terminal -e \"" + self.appExec + "\""
|
||||||
Execute(cmd, self.appPath)
|
Execute(cmd, self.appPath)
|
||||||
|
else:
|
||||||
|
if self.appExec.startswith("pkexec "):
|
||||||
|
print ("Using pkexec workaround...")
|
||||||
|
cmd = "sh -c \"" + self.appExec + "\""
|
||||||
|
Execute(cmd, self.appPath)
|
||||||
else:
|
else:
|
||||||
Execute(None, desktopFile=self.desktopFile)
|
Execute(None, desktopFile=self.desktopFile)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user