[Xfce-bugs] [Bug 16642] Inconsistent behavior between autostart and applications for desktop files

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Mon Apr 6 16:13:05 CEST 2020


https://bugzilla.xfce.org/show_bug.cgi?id=16642

--- Comment #2 from karmy <trash.paradise at protonmail.com> ---
Yes, I know this is called "field code expansion": I read the specification. :)
That's why I said "expected behavior" in the first case ("%%" gives "%" on
display), but not in the second one.

However, I'm not agree with you when you say that "this type of evaluation […]
seems unnecessary for autostart launchers".
The percentage character can appear in option fields of many commands, like
"top -o%MEM".
So if you have in your desktop file

Exec=xfce4-terminal -H -x top -o%MEM

or a more complex command, like

Exec=sh -c '… if [ … ]; then xfce4-terminal -H -x top -o%MEM; fi …'

the launcher will work as autostart application (when put in
~/.config/autostart), but not in an active session (when put in
~/.local/share/applications).

Furthermore, if you remove the line

OnlyShowIn=XFCE;

to use the launcher as autostart application with an other desktop environment,
like gnome, it will not work, because gnome has consistent behavior between
autostart and applications menu: I tested this.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list