Idesk - trash icon


I installed Idesk to show differents icons on my desktop with Openbox 3 and FreeBSD 6.2. I have a file called trash.lnk with the content:

table Icon
Caption: Trash
Icon: /home/olivier/.idesktop/icons/emptytrash.png
Width: 48
Height: 48
X: 347
Y: 660
Command[0]: thunar trash:///
Command[1]: /home/olivier/.scripts/./

and here my script called : (for the moment, I do not erase any files. I test only the presence of files and i post the good icon on the desktop.

ls -A /home/olivier/.local/share/Trash/files/ | grep . >/dev/null
if [ $? -eq 0 ]; then
perl -i.bak -pe 's/emptytrash/fulltrash/g' /home/olivier/.idesktop/trash.lnk
perl -i.bak -pe 's/fulltrash/emptytrash/g' /home/olivier/.idesktop/trash.lnk

When i launch Openbox, the script works fine but i have a problem when i empty the trash with the mouse, idesk doesn't put up-to-date my icon.

Can you help me please ?

Thank you :)

Olivier Regnier

freebsd-questions@xxxxxxxxxxx mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"

Relevant Pages

  • Setting XEmacs external icon
    ... I use a bare Linux with no desktop ... and openbox for a window manager. ... not setting its icon. ...
  • Re: How to display an icon on the desktop
    ... Do you know a program or an command line to display an icon on my desktop? ... I don't want idesk or bbdesk:-$ ... I don't think openbox supports desktop icons. ...
  • Re: issues with POD
    ... Tool sets. ... in Perl I would concisely write while in Icon I ... Unsolicited bulk E-mail subject to legal action. ...
  • Re: Perl icon?
    ... such as the lambda symbol ... c> There doesn't seem to be a symbol, mascot, or icon for Perl that I can ... camel usage with perl is trademarked and can't be used commercially ...
  • Re: Perl-Parameter und Alternativen
    ... Dabei hat es sich natuerlich an Vorgaengern orientiert, ... die Revolution wurde m.E. dadurch herbeigefuehrt, dass Perl weite ... Was die Vorgaenger angeht, fragst Du danach, warum Snobol uebersehen ... kapiert, dass Icon oberflaechlich so aussieht wie andere Sprachen, ...