This guide assumes you use the community-maintained Manjaro MATE 20.0.1. Your milage may vary with anything which isn't this, and may require additional configuration of your sources.
The software exhibited in this guide can be installed from the AUR as
For people who are coming from Linux Mint, Ubuntu MATE, Windows Vista or Windows 7 who want something vaguely Redmond-ish, such users might be interested in a utility which began life within the development team of Linux Mint known as MATE Menu (or, within Linux Mint, Mint Menu).
For sake of familiarity, this solution is good enough for most people. But there is a problem with it — its default for terminal is the emulator which comes with MATE. This is great if you use
mate-terminal daily and have no problem with it, but some users might prefer another terminal which is either lighter to run or possesses more features.
A preference for terminal can be selected within
xdg-utils will always respect that as
xdg-terminal but in spite of that,
mate-menu never will without some tweaking under the hood. So let's do that.
xdg-terminalrequires installation of
xdg-utils-terminal-true-gitfrom AUR which will supersede (and thus remove)
xdg-utils. This is safe to perform and reversible should you not want the functionality of preferred terminal as
Modifying MATE Menu
This knowledge comes from my prior history of MATE elsewhere on the Ubuntu MATE forums for making
x-terminal-emulatorthe default terminal to select. This method is absolutely atrocious compared to the more elegant XDG solution, but some people might prefer that if they are on Debian. This guide will be linked at the bottom later.
To fix this issue, MATE Menu's
system_management.py must be modified. In Manjaro / Arch, this is located in
/usr/lib/python3.8/site-packages/mate_menu/plugins. In a terminal emulator , as follows:
For brevity, terminal will always be referred to as
xdg-terminalregardless which instance of
xdg-utilsis present in your system. Replace with preference if desired. Also,
plumawill be assumed editor here. Use whatever you want or have installed if not that.
cd /usr/lib/python3.8/site-packages/mate_menu/plugins sudo pluma system_management.py
If you want to make a backup,
sudo cp system_management.pyprior,
sudo mvthem both to rename and
sudo ln -swhichever instance you will use as
system_management.py. This way, if the modification fails due to user error and you need to continue work right now you can
sudo rm -rfthe link and remake it to the original copy you had not modified.
With that opened, now do this:
/usr/lib/python3.8/site-packages/mate_menu/plugins/system_management.py, lines 180-185:
if pathExists("mate-terminal"): Button4.connect( "clicked", self.ButtonClicked, "mate-terminal" ) elif pathExists("xdg-terminal"): Button4.connect( "clicked", self.ButtonClicked, "xdg-terminal" ) elif pathExists("x-terminal-emulator"): Button4.connect( "clicked", self.ButtonClicked, "x-terminal-emulator" )
if pathExists("xdg-terminal"): Button4.connect( "clicked", self.ButtonClicked, "xdg-terminal" ) elif pathExists("x-terminal-emulator"): Button4.connect( "clicked", self.ButtonClicked, "x-terminal-emulator" ) elif pathExists("mate-terminal"): Button4.connect( "clicked", self.ButtonClicked, "mate-terminal" )
This is also cross-compatible with
mate-menuinstances in Debian systems lacking XDG.
If you happen to revert
mate-terminalwill become fallback.
Don't forget the spaces! Once those changes are performed, place Advanced MATE Menu item in a panel of choice, or if it already exists, to update all existing panel items by reloading them:
Then try; Open the menu and select Terminal.
xdg-terminal (being your preference defined in MATE's Preferred Applications dialog) should open up, which will match
caja's behaviour and whatever your keybind for opening a terminal is.