You are not logged in.
Pages: 1
Hi, I've got some subfolders of ~/Desktop which I would like to give custom icons. Is this possible?
If not, is it possible to make a launcher with an icon on the Desktop like "my-thunar-handler /real/location/of/folder" such that I can drag stuff into the launcher, and thunar moves them into that folder? I could write a script like that if the path of the dragged file(s) were passed to the script, but that doesn't seem to happen when I drag stuff onto it (do I need a special "%s" or something at the end?)
Offline
Hi,
I'm not suggesting you can't do something along the lines you suggest, but here's what I would do ...
... create a symbolic link in your desktop directory to the real location .. open a console ...
cd ~/Desktop
ln -s /rea/location/of/folder bitbucket
an icon should appear on your desktop with the name bitbucket. Any file you drag and drop into bitbucket will really go into the directory /rea/location/of/folder.
Offline
Hi,
I'm not suggesting you can't do something along the lines you suggest, but here's what I would do ...
... create a symbolic link in your desktop directory to the real location .. open a console ...
cd ~/Desktop ln -s /rea/location/of/folder bitbucket
an icon should appear on your desktop with the name bitbucket. Any file you drag and drop into bitbucket will really go into the directory /rea/location/of/folder.
OK, but how do I change the icon? That's what I'm really after (I don't care if it's "really" stored in a subdirectory of ~/Desktop or not.)
Last edited by unhammer (2012-01-10 07:21:20)
Offline
For the script thing, you can create a .desktop file (you can tweak its icon) which executes the script in the Exec key:
Exec=/path/to/my/script %F
By adding %F (see http://standards.freedesktop.org/deskto … 1s06.html), files dropped on the .desktop file will be used as arguments for the script.
Offline
For the script thing, you can create a .desktop file (you can tweak its icon) which executes the script in the Exec key:
Exec=/path/to/my/script %F
By adding %F (see http://standards.freedesktop.org/deskto … 1s06.html), files dropped on the .desktop file will be used as arguments for the script.
Ah, thanks :-) if anyone's interested, my script looks like this:
#!/bin/sh
if [ "$#" -eq 0 ]; then
echo 'No target directory!'
exit 1
fi
if [ "$#" -eq 1 ]; then
/usr/bin/thunar "$@"
else
mv -f --backup=numbered "$@"
fi
Then I create a .desktop file where
Exec=/path/to/myscript %F /realpath/to/directory/being/faked
(I would prefer to use the Path key instead to get it more gui-like, and copy to ".", but … https://bugzilla.xfce.org/show_bug.cgi?id=5760 …)
Offline
There is code to handle custom file icons in xfdesktop but there's a bug with how it's written. I noticed it when I was writing a thumbnail patch for xfdesktop. I created a bug report/patch to fix your issue: https://bugzilla.xfce.org/show_bug.cgi?id=8326 With this all you have to do is make your image file have the same name as your folder in your ~/.thumbnails directory so ~/Desktop/bitbucket needs an icon named ~/.thumbnails/bitbucket.png
Offline
There is code to handle custom file icons in xfdesktop but there's a bug with how it's written. I noticed it when I was writing a thumbnail patch for xfdesktop. I created a bug report/patch to fix your issue: https://bugzilla.xfce.org/show_bug.cgi?id=8326 With this all you have to do is make your image file have the same name as your folder in your ~/.thumbnails directory so ~/Desktop/bitbucket needs an icon named ~/.thumbnails/bitbucket.png
Wow, that's great! Can't wait to try, but it may take some time before I get xfce compiled on my own
Offline
Pages: 1
[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 545.18 KiB (Peak: 546.02 KiB) ]