How to change the menu right click on the desktop from Ubuntu Mate 20.04?


can anyone pls explain how the menu, which you get with a right mouse click on the desktop, can be edited?
I would like to insert a "start lock screen"-Option to that menu.
I am on Ubuntu Mate 20.04.3 LTS (Focal Fossa).

best regards


Welcome to Ubuntu MATE community!

Really it is possible. I have a pleasure to increase my python experience.

Here is the link to special Caja-Python extension script which does what you want.

To install it use the following commands:

mkdir -p ~/.local/share/caja-python/extensions/
cd ~/.local/share/caja-python/extensions/
wget -c
caja -q

As the result you will have new item in the Caja dropdown menu:


and clicking on it will execute mate-screensaver-command --lock command to lock the screen by MATE Screensaver. Note that this menu item is shown only on ~/Desktop folder.

I have tested it on Ubuntu MATE 20.04 LTS, 21.04 and even upcoming 21.10.

Technical details - the script is based on from deja-dup-caja deb-package and its Restore Missing Files... functions.


Hello Norbert_X,

thanks a lot for your solution.
Under no circumstances i would have thought of caja as the originator of this menu.
I really appreciate your help!

best regards

1 Like