https://bugs.kde.org/show_bug.cgi?id=521574
Bug ID: 521574
Summary: kmenuedit (KDE Menu Editor) inserts single quotes
around environment variables containing special
characters like $ and ~
Classification: Applications
Product: kmenuedit
Version First 6.6.5
Reported In:
Platform: Arch Linux
OS: Linux
Status: REPORTED
Severity: minor
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
DESCRIPTION
kmenuedit inserts single quotes around environment variables that contain
special characters, like $, ~, and !. (Likely others as well) This is
particularly harmful when referencing variables, such as $HOME or $PATH, or
referencing the home path through a ~, which then won't be expanded due to the
single quotes.
STEPS TO REPRODUCE
1. Open an application's settings in kmenuedit, such as by right-clicking it in
the Start Menu and clicking "Edit Application..."
2. In the "Environment variables" section, add a variable containing a special
character. For example, a simple variable assignment that should have no effect
is: PATH=$PATH
3. Open the generated .desktop file in $HOME/.local/share/applications using a
text editor and you will see single quotes inserted around your variable in the
"Exec" section (so PATH=$PATH would become 'PATH=$PATH')
OBSERVED RESULT
The generated .desktop file in $HOME/.local/share/applications contains the
environment variable assignment in its Exec path, surrounded by single quotes.
EXPECTED RESULT
Single quotes should not surround these assignments, at least in the case of
using $ and ~, which should be expanded.
SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window):
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
ADDITIONAL INFORMATION
A possibly-relevant bug is 487927, which describes a very similar issue in
frameworks-kconfig.
A simple workaround is to simply edit the .desktop file after saving the
settings in kmenuedit, removing the quotes yourself. This easy workaround is
why I labeled this bug as minor severity.
--
You are receiving this mail because:
You are watching all bug changes.