You are not logged in.
Functionality that I enjoyed on other operating systems is the ability to create destinations and actions in the context menu of the file browser. Thunar has this functionality though it is a bit of chore to setup. First a screenshot showing the result.
The first step is to create the directory,
mkdir ~/.local/share/Thunar/sendto
Here we'll add what are called dot desktop files. Notice in screenshot the menu option called Podcast Archive. Here is the file, placed in the ~/.local/share/Thunar/sendto directory.
[Desktop Entry]
Type=Application
Version=1.0
Encoding=UTF-8
Exec=/home/will/.local/share/Thunar/sendto/mvtmp %F
Icon=stock_undo
Name=Podcast Archive
The file referred to on the "Exec=" line is a script that simply move the highlighted file to an archive directory. Here I put the script in the same directory as the dot desktop files but it doesn't have to go there. The applications or scripts either have to be explicitly referred to or the they have to be in your $PATH.
Here is the whole script.
#!/bin/bash
#Move files using sendto functionality
mv $1 ~/podcast-archive/
exit #
This is just a sample as the sendto functionality could be used for a variety of other functions.
Offline
Hi Kestrel,
I really like this but normally SendTo copies the file to the new location your script will move the file, it might be good to add a script that copies files.
James
Offline
Yes, James. What I like about openbox is that I can decide if I want to move or copy. In this case I want to move not copy. This is for my podcasts. Some, I save most I delete. Either way, I want them out of the directory tree I sync my player with.
This was meant as a sample. We can create what ever script, to do what ever we want. Cool beans!
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat