Thunar 'cool custom actions'

Forum rules
Before you post please read how to get help

Thunar 'cool custom actions'

Postby kjdixo on Sat Jan 09, 2010 2:16 pm

Thunar 'cool custom actions'.
I have checked the XFCE CE Forum and this is not yet a main Topic.
It would be great if people could post their most useful Thunar Custom Actions here.

This feature of Thunar is described below with 3 examples.
I am using Thunar 0.9.0 on Xubuntu 8.10, but this is useful for all Xfce Thunar installations (Mint Xfce included).
=====================================================================================================
Example 1.
CD/DVD Creator.

In Thunar: Edit
Configure Custom Actions

Appearance conditions (see next 2 lines)
File Pattern : *
Appears if selection contains : Tick all the boxes

Basic (see next 4 lines)
Name : CD/DVD Creator
Description : Leave blank
Command : nautilus --no-desktop burn:/// %f
Icon: nautilus-cd-burner

Notes
When you right click on a folder in Thunar . . . a menu entry will appear called 'CD/DVD Creator'.
Clicking the menu entry will open a Nautilus 'drag and drop write folder' for burning whatever files you want to CD or DVD.

Please don't omit the --no-desktop part of the command if you have XFCE managing the desktop.
If the xfce desktop does get turned off then go to Xfce Settings Manager then Desktop and tick the box 'Allow Xfce to manage the desktop'.
================================================================================================================================
Example 2.
Burn with K3B.

In Thunar: Edit
Configure Custom Actions

Appearance conditions (see next 2 lines)
File Pattern : *.iso
Appears if selection contains : Other Files

Basic (see next 4 lines)
Name : Burn with K3B
Description : Leave blank
Command : k3b --cdimage %f
Icon: k3b

Notes
When you right click on an ISO file (.iso) in Thunar . . . a menu entry will appear called 'Burn with K3B'.
Clicking the menu entry will load the ISO file into K3B . . . ready to burn the ISO file to disc.
=============================================================================================
Example 3.
Open Folder as Root.

In Thunar: Edit
Configure Custom Actions

Appearance conditions (see next 2 lines)
File Pattern : *
Appears if selection contains : directories

Basic (see next 4 lines)
Name : Open Folder as Root
Description : Leave blank
Command : gksudo thunar
Icon: root-terminal

Notes
That will give you a right click menu entry in Thunar called 'Open Folder as Root'.
You can use it to become Root by right clicking on a folder, provided you supply the password.
I think Mint already has Open Folder as Root, but this is still useful in Xubuntu.
Although beyond the scope of this post . . . it is also a good security measure to disable the 15 minute timer on Root User (gksudo) if set.
Please see https://help.ubuntu.com/community/RootSudo and https://help.ubuntu.com/community/RootSudoTimeout for details.

Have Fun
Kevin Dixon
kjdixo
Level 1
Level 1
 
Posts: 24
Joined: Sun May 31, 2009 7:17 am

Linux Mint is funded by ads and donations.
 

Re: Thunar 'cool custom actions'

Postby HANAX on Sat Jan 16, 2010 3:43 pm

I often use this for editing system config files:

Name: Edit as root
command: gksudo mousepad %f
pattern: *
Appears if selection contains: text, other
HANAX
HANAX
Level 1
Level 1
 
Posts: 7
Joined: Sun Jan 10, 2010 7:43 am


Return to XFCE

Who is online

Users browsing this forum: No registered users and 5 guests