debianmateparrot-osmate-desktop

How to add refresh option in mate desktop environment


Im trying to add the refresh button like we have in Windows in right click in mate desktop. Im running Parrot OS.

apt-get install nautilus-refresh
sudo apt-get install python-nautilus xautomation wget

Both these commands return error as not found,I also tried to add repository to sources.list but failed.


Solution

  • This is because you are trying to add refresh option to nautilus which is part of gnome environment whereas parrot-os uses caja which is part of mate environment

    To add a working refresh option in mate, you need to:

    1. Install xautomation by sudo apt install xautomation (you will need xte feature provided by it)

    2. Now open location /home/USER/.config/caja/scripts folder (press ctrl+h in home folder to see .config folder)

    3. Create a file named refresh and add the following in it:

    #!/bin/bash
    
    xte "key F5"
    
    1. Finally right click refresh file, go to properties and check all Execute options inside Permissions tab

    You can now see a refresh option when you right click inside scripts -> refresh