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 revisionBoth sides next revision
xfce:thunar:custom-actions [2020/04/24 03:18] – [Move files into a new folder] added nowiki block to perserve both dashes and replaced double quotes with single tozxfce:thunar:custom-actions [2020/08/04 16:45] – [Opening a terminal] alexxcons
Line 136: Line 136:
 ==== Opening a terminal ==== ==== Opening a terminal ====
     * Name: **Open in a terminal**     * Name: **Open in a terminal**
-    * Command: ''%%terminal --default-working-directory=%d%%''+    * Command: ''%%if [ -d %f ]; then exo-open --working-directory %f --launch TerminalEmulator; else exo-open --working-directory "$(dirname %f)" --launch TerminalEmulator; fi%%''
     * File pattern: *     * File pattern: *
-    * Appears if selection contains: Directories+    * Appears if selection contains: any
  
-**Note:** You might need to type ''xfce4-terminal'' instead of just ''terminal'' for some distributions.+**Note:** If a non-directory file is selected, a terminal in the current directory will be opened
  
 ---- ----