some commands, eg. rdesktop can be invoked like this: % rdesktop -g90% $SOME_SERVER this tells rdesktop to take over 90% of the screen. "Some earlier versions" of xfce allowed the percent sign to be used inside menus, yet now (4.4.2) it does not work anymore and I see this in the logs: (xfdesktop:4432): libxfcegui4-WARNING **: Invalid field code in Exec line: %
http://standards.freedesktop.org/desktop-entry-spec/1.0/ar01s06.html
Hmm, before I reopen it ... the standard says this: ---------CUT-------- Field codes consist of the percentage character ("%") followed by an alpha character. ---------CUT-------- I don't see where an "alpha character" follows the percent character in my commandline, unless "alpha" contains whitespaces as well. Unfortunately the spec does not define "alpha character", but usually whitespaces are not included. So are you really sure that the behaviour is correct?
(In reply to comment #2) > I don't see where an "alpha character" follows the percent character in my > commandline, unless "alpha" contains whitespaces as well. The reason you don't see one is because your commandline is invalid per the spec. If you want to include a single literal percent sign, you need to put '%%' in the commandline. Read the page I referenced; it's all in there.
Yes, I read the specs. But the specs say "percentage character ("%") FOLLOWED by an ALPHA character". The commandline I try to invoke looks like this: rdesktop -g90% $SOME_SERVER So what I have is a percentage character FOLLOWED by a WHITESPACE and _not_ an alpha character. According to the specs, I should be able to do so ...
I interpret the spec to mean that the only valid character to come after a percent character is an alpha character. This is consistent with the use of % as a 'format string character' in other contexts. I think "Literal percentage characters must be escaped as %%" is pretty clear, though.
OK, then I'll take it like this :-)