Only use x-terminal-emulator as a fallback if mate-terminal isn't installed (also fixes x-terminal-emulator uses as default in distros where it doesn't exist - Fedora for instance)
This commit is contained in:
parent
18d293ef4a
commit
62bee525c8
@ -384,6 +384,8 @@ class ApplicationLauncher( easyButton ):
|
|||||||
if self.appExec:
|
if self.appExec:
|
||||||
if self.useTerminal:
|
if self.useTerminal:
|
||||||
cmd = "x-terminal-emulator -e \"" + self.appExec + "\""
|
cmd = "x-terminal-emulator -e \"" + self.appExec + "\""
|
||||||
|
if os.path.exists("/usr/bin/mate-terminal"):
|
||||||
|
cmd = "mate-terminal -e \"" + self.appExec + "\""
|
||||||
Execute(cmd, self.appPath)
|
Execute(cmd, self.appPath)
|
||||||
else:
|
else:
|
||||||
Execute(self.appExec, self.appPath)
|
Execute(self.appExec, self.appPath)
|
||||||
|
Loading…
Reference in New Issue
Block a user