File 0001-xterm-no-symlink-dep.patch of Package mate-menu
--- a/mate_menu/easybuttons.py
+++ b/mate_menu/easybuttons.py
@@ -399,9 +399,11 @@ class ApplicationLauncher( easyButton ):
def execute( self, *args ):
if self.appExec:
if self.useTerminal:
- cmd = "x-terminal-emulator -e \"" + self.appExec + "\""
+ cmd = "xterm -e \"" + self.appExec + "\""
if os.path.exists("/usr/bin/mate-terminal"):
cmd = "mate-terminal -e \"" + self.appExec + "\""
+ elif os.path.exists("/usr/bin/xfce4-terminal"):
+ cmd = "xfce4-terminal -e \"" + self.appExec + "\""
Execute(cmd, self.appPath)
else:
Execute(self.appExec, self.appPath)
--- a/mate_menu/plugins/system_management.py
+++ b/mate_menu/plugins/system_management.py
@@ -166,8 +166,10 @@ class pluginclass( object ):
Button4 = easyButton( "terminal", self.iconsize, [_("Terminal")], -1, -1 )
if os.path.exists("/usr/bin/mate-terminal"):
Button4.connect( "clicked", self.ButtonClicked, "mate-terminal" )
+ elif os.path.exists("/usr/bin/xfce4-terminal"):
+ Button4.connect( "clicked", self.ButtonClicked, "xfce4-terminal" )
else:
- Button4.connect( "clicked", self.ButtonClicked, "x-terminal-emulator" )
+ Button4.connect( "clicked", self.ButtonClicked, "xterm" )
Button4.show()
self.systemBtnHolder.pack_start( Button4, False, False, 0 )
self.mateMenuWin.setTooltip( Button4, _("Use the command line") )