Patching xfdesktop to add Thunar Trash icon
Benedikt Meurer
benedikt.meurer at unix-ag.uni-siegen.de
Sat Aug 12 14:27:46 CEST 2006
Danny Milosavljevic wrote:
> [Desktop Action Empty Trash]
> Exec=thunar-empty-trash %F
> Name=Empty Trash
> Icon=empty-trash
>
> ?
>
> Maybe it's just me, but it's more than enough to have files. No need for
> weird in-memory objects nobody is going to find anyway (think moving trash
> to the panel or removing the thing from the desktop).
>
> Of course that still leaves the issue of when to determine whether
> or not the trash is "empty", although that's of questionable utility
> anyway.
That's (a) not going to work, because as I told you before desktop
actions don't work this way, and (b) doesn't sound like a sane solution.
Look at Nautilus (or Konqueror) which is using desktop files (both
virtual and real) all over the place for everything from simple
launchers to SMB workgroups, and it's a real mess now.
Since you'll need some "in-memory objects" anyway to determine the state
of the trash, why not simply use this "in-memory object" as trash to
display? Look at the panel applet, you really just need to monitor the
state, a simple DBusGProxy, that's all. Why create additional overhead?
> cheers,
> Danny
Benedikt
More information about the Xfce4-dev
mailing list