On Monday 17 August 2009 10:34:34 PCMan wrote:
> Sorry, I have another idea:
> [Desktop Action] groups should also allow the X-KDE-Submenu key, so
> creating submenu for submenus is possible. Although there is no real
> use case now, this might be useful in the future once someone needs
> it.
> 
> Also, there might be a new key named Dynamic.
> The key contains a command line which can generate menu content
>  dynamically. After calling the command, its stdout should be inserted to
>  current desktop entry file.
> So we can support dynamic menu items generated with scripts.
> This partially solves my preceding question, how to generate menu
> according to different context for files of the same mime-type.
> 
> Example of its usage:
> 1.you can use a shell script to examine the content of the folder, and
> then generate the menu according to its content.
> 2.this can be used to develop integration with version control systems.
> 3.and more....

If we were to support something like this I think it would be best if we 
required the .desktop file to be marked as executable as well, to avoid 
opening a silly security hole that GNOME and KDE both recently fixed.

Regards,
 - Michael Pyne

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
xdg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to