0

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.

Ebenezer Isaac
  • 772
  • 1
  • 8
  • 31

1 Answers1

2

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

sn99
  • 843
  • 8
  • 24
  • Thanks a lot, I was able to add the refresh button. I also added other useful scripts for clearing cache and stuff. But is there a workaround to clicking the "scripts" and then the Refresh script? – Ebenezer Isaac Apr 21 '19 at 16:55
  • @EbenezerIsaac You can try to tweak files in `/usr/share/caja/ui` but making script is the general way to go – sn99 Apr 21 '19 at 17:34
  • I don't see, how a script is ackowledged as button, although it is within the context menu. If you really want context menu "buttons", you should go with `caja-actions`. They are highly customizeable. – WGRM Mar 17 '22 at 04:18