Bastian, Waldo wrote:
It's not entirely clear to me what you try to achieve here. That said...
"Directory" type .desktop files are used by the application menu to
provide a title and icon for sub-menus. KDE also uses them to provide a
title and icon for sub-directories when used in the file system. In
these cases the .desktop file should be named ".directory" and it
describes the directory it is placed in. That kind of usage is not
covered by any XDG specification though, so your milage will vary.

Thanks, I started to think that the "Directory" type didn't have any uses, I tried rox, nautilus and thunar and none of these file browsers does anything with them. Most funny is the response from nautilus which offers to "open" the desktop file, but when you try to do this it throws the error that it can't open the file because "The location is not a folder" :)

Maybe it would help to make the desktop entry spec a little more verbose on these usage things, there is no way for the reader to guess these things.

What I'm trying to do is 1) set some kind of flag for some directories and then 2) tell the file browser my application can open those directories. Since I now see that this can not be done with any of the xdg specs I will go for the "project file" solution. I'll put a file in each of those directories with a newly defined mimetype for my application. Probably those "project files" will look a lot like .desktop files.

-- Jaap <[EMAIL PROTECTED]>
_______________________________________________
xdg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to