How would I make a custom thunar action to open a text file as root?
Assuming you already have “gksu” installed (if you don’t, you should install it with “sudo apt-get install gksu”);
First, make a script with the following command in it
gksu pluma $@
(obviously, you should change “pluma” for whatever text editor you wish to use)
And save it as “open-text-file-as-root.sh” in your home folder somewhere. Right click the file and select the “permissions” tab and check the “make executable” check-box.
Then, open Thunar Custom Actions and point to the script you have just made. This is in order that the script may be made available as a right click option in Thunar file manager
Thanks.
Worked like a charm.