[HOW TO] Add options to Thunar's "Send To" menu
Thunar's "send to" menu option can be easily extended using desktop entry files. All we need is to create a new desktop file in ~/.local/share/Thunar/sendto/
for each destination. The desktop file has a MimeType
field which allows you to control on which file types the "send to" option will appear. If you omit the MimeType
the option will appear for all types.
Example
The example bellow is a option to send my sketches to Picasa. It appears only for PNG images and uses a shell script that I wrote and is in $PATH
. You can use it as a boilerplate for your own.
# sketchupload.desktop - Send to Picasa
[Desktop Entry]
Type=Application
Version=1.0
Encoding=UTF-8
TryExec=sketchupload.sh
Exec=sketchupload.sh %F
Icon=picasa-16
Name=Send to Picasa
MimeType=image/png;
One thing I would find very useful is the ability to send files to another tab, now that Thunar uses tabs. But I do not know how to accomplish that. Any clues?
ReplyDeleteYou can open a directory on a new tab (right-click -> Open in New Tab). If you change Thunar's settings you'll be able to middle-click a directory to open it on a new tab. Other than that I can't see the point of sending files to new tabs.
DeleteI think the point is not to send files to a new tab but just the next open tab, which indeed would be useful. E.g. nemo has it by default.
DeleteGreat tips as always. Ive got a question, you always use -y what is the use of it?
ReplyDeleteAssume yes. That way it'll install without prompting for confirmation.
DeleteGreat! I learned something new today. Thanks!
ReplyDeleteYou're welcome.
DeleteVery nice and simple tuto :)
ReplyDeleteI installed Xubuntu yesterday. I don't have a "Send to" feature in the "right click on file" Thunar. Also, per the above: I have no Tabs in Thunar either. Can you point me to a Tutorial or How To, please?
ReplyDeleteMaybe your Thunar is old. Here's how to upgrade it: http://goo.gl/eVRl7
DeleteI have Xubuntu and the only local i see is /usr/local/share/ and there is no Thunar, ver. 1.63 being what i have. And how can you add favorites/bookmarks to Thunar?
ReplyDeleteCreate the Thunar folder inside ~/.local/share/
DeleteBookmarks can be added using drag & drop.
This is very helpful. But I was looking for a way to add a "Browse..." feature that would open a directory window and allow me to send a file wherever I wanted.
ReplyDeleteIs this possible?
In the the "Send To" menu is already possible to send a file.
Delete