Summary: | .desktop shortcut does not resolve $HOME | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kservice | Reporter: | Holger <h.klene> |
Component: | general | Assignee: | David Faure <faure> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | a.samirh78, alexander.lohnau, kdelibs-bugs, nate |
Priority: | NOR | ||
Version: | 5.68.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | broken shortcut written by the GUI |
Description
Holger
2020-08-03 20:22:37 UTC
The properties dialog needs to use [$e] when writing out the desktop file, if it wants env vars to be expanded. Like this: Path[$e]=$HOME/src This is as per the desktop entry spec (IIRC), not a bug. Please reopen if you disagree... Environment variables are still broken, though they are suggested by the editor interface. Please check the screenshot again: https://bugsfiles.kde.org/attachment.cgi?id=130404 So either the editor must write the correct prefix into the file as: Path[$e]=$HOME/src Or it shall stop offering to use environment variables (which would be really sad!). Bug 424974 has been fixed, to treat ~ Created attachment 147808 [details]
broken shortcut written by the GUI
Even if I modify the shortcut manually in a text editor to use the "Path[$e]="-syntax, on loading in the GUI, it will "resolve" the variable, leaving me with a constant path at the time of editing. Still the dialog offers me to use variables, but writes it back as:
Path=$HOME
explicitly removing the [$e]
|