Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom action in xfce4 Thunar: how to create a link under current directory? [closed]

Tags:

linux

xfce

In Thunar, it is possible to define custom actions. There is already a "send to desktop (create link)" option in the right-click menu.

What I want is to add a self-defined action in Thunar that could create a link of a file or folder under current directory so that I can copy it to anywhere I want right away, instead of going to the Desktop at first by using the "send to" option already available.

How to do this?

I know I can do this in a terminal with the "ln" command, but I cannot figure out how to assign a new name for the created link in the context menu command.

like image 846
L.J Avatar asked Jan 09 '14 15:01

L.J


3 Answers

Thunar 1.6.3 Stand on folder/file you want to make link to (highlighted) Go to Edit (in main menu) and choose Make link.

like image 134
Gytis Avatar answered Sep 30 '22 13:09

Gytis


Go to Edit - Configure custom actions and try the following custom action.

enter image description here

like image 30
orschiro Avatar answered Sep 30 '22 14:09

orschiro


ln -s %f Link\ to\ %n

Works perfectly both for directories and files

like image 20
Pier Bezuhoff Avatar answered Sep 30 '22 14:09

Pier Bezuhoff