From 62bee525c8fbe9a3d3e913932bbaef7032aff1a4 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Mon, 20 Jan 2014 15:04:28 +0000 Subject: [PATCH] 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) --- usr/lib/linuxmint/mintMenu/plugins/easybuttons.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py b/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py index 9da9c0c..2d0d90d 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py +++ b/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py @@ -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)