Custom Icon on Mounted Volume

Kip Warner kip at thevertigo.com
Tue Aug 14 15:35:05 PDT 2012


On Tue, 2012-08-14 at 14:21 +0000, David Faure wrote:
> You could try a .directory file with
> [Desktop Entry]
> Icon=foo.png
> 
> (well, an icon from the icon theme would probably work better than a relative 
> one, not sure, try that first)

Hey David. I took a look through the fd.o spec for Desktop Entries and
there isn't much written on the directory type. But when I created a
foo.directory file, I noticed my Xfce shell manager (thunar) actually
displayed the extension, as opposed to .desktop files where it
completely hides the extension and gives a user friendly name.

So my questions then are two. First, is the .directory type supported by
any desktop manager at present?

Second, if I understand correctly, the following minimal dumped in the
root directory of a mountable volume should be sufficient to display an
icon for the user's volume manager, where supported?

[Desktop Entry]
Encoding=UTF-8
Type=Directory
Version=1.0
Name=Some Volume
Icon=Icon.png

Thanks for your help.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/xdg/attachments/20120814/95aeae4b/attachment.pgp>


More information about the xdg mailing list