| Summary: | Launcher creation adds single quotes to application, preventing ~ expansion. | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kconfig | Reporter: | Emmett Culley <lst_manage> |
| Component: | general | Assignee: | Matthew Dawson <matthew> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | alexander.lohnau, kdelibs-bugs-null, natalie_clarius, nate |
| Priority: | NOR | Keywords: | regression |
| Version First Reported In: | 6.3.0 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Emmett Culley
2024-06-02 14:54:36 UTC
Generally you shouldn't need to add quotes yourself. Can you provide an example of exactly what you're typing and exactly what it ends up a in the resulting .desktop file? Also, in what app are you creating these desktop files? KMenuEdit or the properties dialog? Normally I use the launcher edit dialog. I enter a path to a script and save, and it works as expected. However, if the path include ~ I get a "Could not find program ~/bin/script_name". If it then edit the .directory file and remove the single quotes the launcher edit process added and save. Then the launcher doe work as expected that the script ~/bin/script_name does run. I only mention adding single quotes because I noticed that old launcher files on my system do not have that single quotes added and they still work. Since my upgrade to fedoraa 40, some no longers worked and in all cases I found single quotes around the script spec. I see two issues. One that some upgrade started adding single quotes to the script spec on launcher edit save. That caused no propblem, as all launchers still worked. But since upgrade to fedora 49 and KDE to 6, launchers script specs with a ~ no longer work. Unless I remove the single quotes from the launcher .directory file. Hence my suspician that what changed is bash expansion on the launcher script spec failes to translate ~ to my home directory. All I have to do to see this issue is right click on any launcher, alter the Program spec in anyway and save. the spec in the .directory file will now be wrapped in single quotes, even if it didn't before. If the spec contained a ~ then the launcher no longer works. I hope this helps. Can confirm. Perhaps something changed in KDesktopFile. |