1

How can I use a percentage character in the Exec line of a .desktop file? The following example does not execute.

[Desktop Entry]
Type=Application
Terminal=false
Icon=vinagre
Name=RDP
Exec=/usr/bin/rdesktop -g 90%x90% SomeHostName
1
  • My standard advice on any extraordinary stuff to be done in the Exec line: Use a script.
    – muru
    Aug 30, 2014 at 11:40

1 Answer 1

3

Use two percentage characters.

[Desktop Entry]
Type=Application
Terminal=false
Icon=vinagre
Name=RDP
Exec=/usr/bin/rdesktop -g 90%%x90%% SomeHostName

Desktop Entry Specification: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .