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:
Clement Lefebvre 2014-01-20 15:04:28 +00:00
parent 18d293ef4a
commit 62bee525c8

View File

@ -384,6 +384,8 @@ class ApplicationLauncher( easyButton ):
if self.appExec:
if self.useTerminal:
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)
else:
Execute(self.appExec, self.appPath)