Hi,

I have noticed an inconsistency in the way KDE and Gnome treat ampersands in associations names. Here's an example to make things concrete. The attached file defines the application name as:

Name=Ampersand+foo &foo

If you put it in $HOME/.local/share/applications you will get the following entries in 'Open with...':

 * In Gnome 'Ampersand+foo &foo'
   That is the ampersand is not interpreted and is left as is.

 * In KDE 'Ampersand+foo foo' plus a keyboard shortcut for the letter 'f'.
That is, KDE interpreted the ampersand and thus removed it from the application name. To avoid that, one must double the ampersand. But then one gets '&&' in Gnome.

The Desktop Entry Specification says nothing on the subject. Hence the question:

Which of KDE or Gnome is right?


--
Francois Gouget
[EMAIL PROTECTED]

[Desktop Entry]
Encoding=UTF-8
Type=Application
NoDisplay=true
Icon=gnome-control-center
Name=Ampersand+foo &foo
Exec="/usr/X11R6/bin/xterm"
Terminal=false
MimeType=application/msword;application/rtf;application/vnd.ms-word
_______________________________________________
xdg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to