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
Thunar 'cool custom actions'
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Thunar 'cool custom actions'
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Thunar 'cool custom actions'
I often use this for editing system config files:
Name: Edit as root
command: gksudo mousepad %f
pattern: *
Appears if selection contains: text, other
Name: Edit as root
command: gksudo mousepad %f
pattern: *
Appears if selection contains: text, other