Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
xfce:thunar:custom-actions [2024/01/07 12:50] – [Open thunar as root here] alexxconsxfce:thunar:custom-actions [2025/06/16 11:26] (current) – [Create Shared Thumbnails] alexxcons
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
-{{ :xfce:xfce.thunar.png?no link|}}+{{ :xfce:thunar.png?nolink|}}
 ====== Thunar - Custom Actions ====== ====== Thunar - Custom Actions ======
  
Line 39: Line 39:
 This section provides a step-by-step introduction to the **Custom Actions** plugin, demonstrating how to add a simple action. We start by opening the **Custom Actions** dialog as explained above. In the dialog, click on the first button in the list of buttons (the one labeled with the ''+''). The **Create Action** dialog will appear, as shown in the screenshot below. This section provides a step-by-step introduction to the **Custom Actions** plugin, demonstrating how to add a simple action. We start by opening the **Custom Actions** dialog as explained above. In the dialog, click on the first button in the list of buttons (the one labeled with the ''+''). The **Create Action** dialog will appear, as shown in the screenshot below.
  
-<figure "Create Action Dialog"> +<figure "Create Custom Action Dialog"> 
-{{:xfce:thunar:uca-create.png|}}+{{:xfce:thunar:uca-create.png|Create Custom Action Dialog Window}}
 </figure> </figure>
  
Line 69: Line 69:
 Now close the **Custom Actions** dialog, select a folder in Thunar and open the context menu (right-click on the file icon). The newly created **Search with Catfish** action will appear in the context menu, as shown in the screenshot below. Now close the **Custom Actions** dialog, select a folder in Thunar and open the context menu (right-click on the file icon). The newly created **Search with Catfish** action will appear in the context menu, as shown in the screenshot below.
  
-<figure "Custom Actions Dialog"> +<figure "Custom Actions List Dialog"> 
-{{:xfce:thunar:uca-list.png}}+{{:xfce:thunar:uca-list.png|Custom Actions List Dialog}}
 </figure> </figure>
  
Line 167: Line 167:
 ==== Open root terminal here ==== ==== Open root terminal here ====
     * Name: **Open root terminal here**     * Name: **Open root terminal here**
-    * Command(1): ''<nowiki>pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xfce4-terminal --default-working-directory=%f</nowiki>''+    * Command(1): ''<nowiki>pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY dbus-launch xfce4-terminal --default-working-directory=%f</nowiki>''
     * Command(2): ''<nowiki>gksu xfce4-terminal --default-working-directory=%f</nowiki>''     * Command(2): ''<nowiki>gksu xfce4-terminal --default-working-directory=%f</nowiki>''
     * File pattern: *     * File pattern: *
Line 179: Line 179:
 ==== Open thunar as root here ==== ==== Open thunar as root here ====
     * Name: **Open thunar as root here**     * Name: **Open thunar as root here**
-    * Command(1): ''pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY dbus-run-session thunar %f''+    * Command(1): ''pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY dbus-launch thunar %f''
     * Command(2): ''thunar admin:/''''/''''/%f''     * Command(2): ''thunar admin:/''''/''''/%f''
     * Command(3): ''gksu thunar %f''     * Command(3): ''gksu thunar %f''
Line 190: Line 190:
 ==== Edit file as root ==== ==== Edit file as root ====
     * Name: **Edit as root**     * Name: **Edit as root**
-    * Command(1): ''pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY put-your-favourite-text-editor-here %f''+    * Command(1): ''pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY dbus-launch put-your-favourite-text-editor-here %f''
     * Command(2): ''gksu put-your-favourite-text-editor-here %f''     * Command(2): ''gksu put-your-favourite-text-editor-here %f''
     * File pattern: *     * File pattern: *
Line 296: Line 296:
     * Appears if selection contains: Folders     * Appears if selection contains: Folders
  
-**Note:** Required to download [[https://raw.githubusercontent.com/SKefalidis/DBusSharedThumbnailRepositoryCreator/main/sharedx.sh|this script]] and store it locally. Requires ''python3'' and ''realpath''.+**Note:** Required to download a thumbnail generation script. Candidates are:  
 + 
 +    * {{ :xfce:thunar:sharedx.sh.tar.gz |Generic script to request thumbnails via DBus API}} ([[https://raw.githubusercontent.com/SKefalidis/DBusSharedThumbnailRepositoryCreator/main/sharedx.sh|source]]). Requires ''python3'' and ''realpath''. 
 + 
 + 
 +<note important>Attention: Read and use external thumbnail generation scripts with caution! They are not part of Xfce and are not tested / reviewed.</note>
 ---- ----
 ==== Use 'bulk rename' on a single file ==== ==== Use 'bulk rename' on a single file ====
Line 318: Line 323:
 [[|Back To Top]] [[|Back To Top]]
 ---- ----
-[[:xfce:thunar:|Back to Thunar documentation page]]+[[:xfce:thunar:|Return to Thunar Main Documentation Page]]