Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
xfce:thunar:custom-actions [2020/08/30 16:07] – [Custom Actions] alexxcons | xfce:thunar:custom-actions [2024/03/29 19:47] (current) – Using dbus-launch seems to be the best way to get proper support for D-Bus services and as few warnings as possible gael | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{ :xfce:thunar:thunar.png?nolink|}} | + | ~~NOTOC~~ |
- | ====== Custom Actions ====== | + | {{ :xfce:xfce.thunar.png?no link|}} |
+ | ====== | ||
Thunar allows users to add custom actions to the file and folder context menus (by the use of the '' | Thunar allows users to add custom actions to the file and folder context menus (by the use of the '' | ||
Line 19: | Line 20: | ||
* **[[#Edit file as root|Edit file as root]]** | * **[[#Edit file as root|Edit file as root]]** | ||
* **[[#Create a symbolic link|Create a symbolic link]]** | * **[[#Create a symbolic link|Create a symbolic link]]** | ||
+ | * **[[#Create a hardlink|Create a hardlink]]** | ||
* **[[#View disk usage of the current directory|View disk usage of the current directory]]** | * **[[#View disk usage of the current directory|View disk usage of the current directory]]** | ||
* **[[#Open file in terminal text editor|Open file in terminal text editor]]** | * **[[#Open file in terminal text editor|Open file in terminal text editor]]** | ||
* **[[# | * **[[# | ||
* **[[#Change OpenDocument-supported formats|Change OpenDocument-supported formats]]** | * **[[#Change OpenDocument-supported formats|Change OpenDocument-supported formats]]** | ||
- | * **[[# | + | * **[[# |
* **[[#Rename subtitles easily|Rename subtitles easily]]** | * **[[#Rename subtitles easily|Rename subtitles easily]]** | ||
* **[[#Move files into a new folder|Move files into a new folder]]** | * **[[#Move files into a new folder|Move files into a new folder]]** | ||
+ | * **[[#Create Shared Thumbnails|Create Shared Thumbnails]]** | ||
+ | * **[[#Use 'bulk rename' | ||
+ | * **[[#Trust multiple desktop files at once|Trust multiple desktop files at once]]** | ||
+ | * **[[https:// | ||
+ | |||
---- | ---- | ||
===== Adding a Custom Action ===== | ===== Adding a Custom Action ===== | ||
- | This section provides a step-by-step introduction to the **Custom Actions** plugin, demonstrating how to add a **Print File** | + | This section provides a step-by-step introduction to the **Custom Actions** plugin, demonstrating how to add a simple |
<figure " | <figure " | ||
- | {{: | + | {{: |
</ | </ | ||
- | On the first page, enter '' | + | On the first page, enter '' |
- | r | + | |
+ | Optionally, you can specify a {gui> | ||
< | < | ||
Line 103: | Line 112: | ||
* Appears if selection contains: Directories | * Appears if selection contains: Directories | ||
- | **Hint:** You may prefer the [[http://thunar.xfce.org/plugins.html# | + | **Hint:** You may prefer the [[https://docs.xfce.org/xfce/thunar/archive|Thunar Archive Plugin]], which does pretty much the same thing with less manual setup required on your part. It's either included with your distribution (in the case of [[https:// |
---- | ---- | ||
Line 134: | Line 143: | ||
==== Rotate JPEGs ==== | ==== Rotate JPEGs ==== | ||
* Name: **Rotate Clockwise** | * Name: **Rotate Clockwise** | ||
- | * Command: ''< | + | |
+ | | ||
+ | * Command(counterclockwise): | ||
* File pattern: *.jpg; | * File pattern: *.jpg; | ||
* Appears if selection contains: JPEG Image Files | * Appears if selection contains: JPEG Image Files | ||
- | **Note: | + | **Note: |
- | + | ||
- | [[https:// | + | |
---- | ---- | ||
==== Open terminal here ==== | ==== Open terminal here ==== | ||
+ | |||
* Name: **Open terminal here** | * Name: **Open terminal here** | ||
- | * Command: ''< | + | * Command |
+ | * Command 2: ''< | ||
* File pattern: * | * File pattern: * | ||
* Appears if selection contains: any | * Appears if selection contains: any | ||
- | **Note:** If non-directory files are selected, a terminal in the current directory | + | '' |
- | **Note:** For each selected folder, | + | |
+ | '' | ||
---- | ---- | ||
==== Open root terminal here ==== | ==== Open root terminal here ==== | ||
* Name: **Open root terminal here** | * Name: **Open root terminal here** | ||
- | * Command: ''< | + | * Command(1): ''< |
+ | * Command(2): ''< | ||
* File pattern: * | * File pattern: * | ||
* Appears if selection contains: Directories | * Appears if selection contains: Directories | ||
+ | |||
+ | **Note:** Use either pkexec or gksu, depending on what is available for your distro. | ||
**Note:** You should rewrite the command with normal straight quotes. | **Note:** You should rewrite the command with normal straight quotes. | ||
Line 166: | 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: '' | + | * Command(1): '' |
+ | * Command(2): '' | ||
+ | * Command(3): '' | ||
* File pattern: * | * File pattern: * | ||
* Appears if selection contains: Directories | * Appears if selection contains: Directories | ||
- | **Note:** Some distributions no longer include '' | + | **Note:** Some distributions no longer include '' |
---- | ---- | ||
==== Edit file as root ==== | ==== Edit file as root ==== | ||
* Name: **Edit as root** | * Name: **Edit as root** | ||
- | * Command: '' | + | * Command(1): '' |
+ | * Command(2): '' | ||
* File pattern: * | * File pattern: * | ||
* Appears if selection contains: Text files | * Appears if selection contains: Text files | ||
Line 184: | Line 200: | ||
==== Create a symbolic link ==== | ==== Create a symbolic link ==== | ||
* Name: **Create symlink** | * Name: **Create symlink** | ||
- | * Command: ''< | + | * Command: ''< |
* File pattern: * | * File pattern: * | ||
* Appears if selection contains: Directories, | * Appears if selection contains: Directories, | ||
Line 190: | Line 206: | ||
---- | ---- | ||
+ | ==== Create a hardlink ==== | ||
+ | * Name: **Create hardlink** | ||
+ | * Command: ''< | ||
+ | * File pattern: * | ||
+ | * Appears if selection contains: Directories, | ||
+ | ---- | ||
==== View disk usage of the current directory ==== | ==== View disk usage of the current directory ==== | ||
* Name: **Disk Usage** | * Name: **Disk Usage** | ||
Line 205: | Line 227: | ||
* File pattern: * | * File pattern: * | ||
* Appearance Conditions: Text files | * Appearance Conditions: Text files | ||
+ | |||
---- | ---- | ||
Line 234: | Line 257: | ||
---- | ---- | ||
- | ==== Download subtitles | + | ==== Download |
* Name: **Download subtitles** | * Name: **Download subtitles** | ||
- | * Command: ''< | + | * Command: ''< |
* File pattern: * | * File pattern: * | ||
* Appears if selection contains: Video Files | * Appears if selection contains: Video Files | ||
- | **Note:** You will need '' | + | **Note:** You will need to follow the instructions on [[https://github.com/emericg/OpenSubtitlesDownload|OpenSubtitlesDownload]] which requires |
---- | ---- | ||
Line 265: | Line 288: | ||
---- | ---- | ||
+ | |||
+ | ==== Create Shared Thumbnails ==== | ||
+ | * Name: **Create shared thumbnails** | ||
+ | * Description: | ||
+ | * Command: ''< | ||
+ | * File pattern: * | ||
+ | * Appears if selection contains: Folders | ||
+ | |||
+ | **Note:** Required to download [[https:// | ||
+ | ---- | ||
+ | ==== Use 'bulk rename' | ||
+ | * Name: **Open in bulk renamer** | ||
+ | * Description: | ||
+ | * Command: ''< | ||
+ | * File pattern: * | ||
+ | * Appears if selection contains: any | ||
+ | * Range: 1-1 | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Trust multiple desktop files at once ==== | ||
+ | * Name: **Trust Desktop Files** | ||
+ | * Description: | ||
+ | * Command: ''< | ||
+ | * File pattern: *.desktop | ||
+ | * Appears if selection contains: other files | ||
+ | * Range: 1-1 | ||
[[|Back To Top]] | [[|Back To Top]] | ||
---- | ---- | ||
[[: | [[: |