Topic: Thunar custom actions

A lot of discussion of Thunar recently. Once you've got to appreciate Thunar's custom actions it's hard to go back to Pcmanfm. In brief, they add an item to the context menu. These items can appear, or not, depending on the file type.

A good intro here:
http://thunar.xfce.org/pwiki/documentat … om_actions

This is always the first one I add - it add an option to compute the md5 sum of the selected file:

zenity --info --title="Check md5 for %n" --text="$(md5sum %f)"

Use the file type 'other files' and the pattern '*.iso; *.usb; *.img'. Zenity is powerful and with the %F option you can feed in multiple files and have the output  in columns.

Here's an example for uploading an image to a site like Omploader:
http://crunchbanglinux.org/forums/topic … -uploader/

Others I add include opening files/folders/terminal as root. I use mousepad (the text editor for Xfce) as it has a warning similar to Pcmanfm's when operating as root.

Another list here:
http://ubuntuforums.org/showthread.php?t=435800

Re: Thunar custom actions

Here are some useful custom actions that I have come across in my Ubuntu travels. Perhaps these should be added to the Thunar wiki? Enjoy tongue

Name: Open Terminal here as root
Description: Launches a root Terminal in the current directory
Command:

gksu terminator

File pattern: *
Appears if selection contains: Directories
*Caution with the root access
NB: *You can substitute "terminator" for your preferred terminal utility*

Name: Open Folder as Root
Description: Opens the current folder with root permissions
Command:

gksu thunar %fd

File pattern: *
Appears if selection contains: Directories
*Caution with the root access

Name: Open Text as Root
Description: Opens selected text file with root permissions
Command:

gksu gedit %f

File pattern: *
Appears if selection contains: Text Files
NB: *I use gedit as my text editor, but you can substitute gedit for any text editor you wish.
*Caution with the root access

Name: Search including hidden files/folders
Description: Searches entire file system
Command:

catfish --fileman=thunar --hidden --path=%f

File pattern: *
Appears if selection contains: Check all
NB: *I use catfish as my search app, but you can substitute catfish for any search app that you like.

- first two courtesy of Tayfun Duran:
http://www.pubbs.net/ubuntu/200911/6921/

Last edited by nabilalk (2010-01-29 12:08:50)

#! 10 “Statler” r20110207 32-bit & Openbox

Re: Thunar custom actions

wrong post - sozzy

Last edited by anbclarke (2012-04-20 15:26:47)