Bug#898999: [xdg-utils] [xdg-utils] Unable to open KMail when profile name consists of two words
Alexander Kernozhitsky
sh200105 at mail.ru
Fri May 18 13:03:59 BST 2018
Package: xdg-utils
Version: 1.1.2-2
Severity: normal
Tags: patch
Trying to execute xdg-mail gave me the following error:
/usr/bin/xdg-email: 613: local: умолчанию: bad variable name.
Line 613 contains the following code:
local profile=$($kreadconfig --file emaildefaults \
--group Defaults --key Profile)
$kreadconfig is /usr/bin/kreadconfig5 in case of KDE 5. This command gives the
following output for me:
$ kreadconfig --file emaildefaults --group Defaults --key Profile
По умолчанию
Because the profile name consists of two words and $() is unescaped, word
splitting occurs, so the error mentioned above happens.
The remedy is to quote $($kreadconfig):
local profile="$($kreadconfig --file emaildefaults \
--group Defaults --key Profile)"
--- System information. ---
Architecture:
Kernel: Linux 4.16.0-1-amd64
Debian Release: buster/sid
990 testing ftp.by.debian.org
500 unstable ftp.by.debian.org
--- Package information. ---
Package's Depends field is empty.
Recommends (Version) | Installed
====================================-+-===========
libfile-mimeinfo-perl |
libnet-dbus-perl |
libx11-protocol-perl |
x11-utils | 7.7+4
x11-xserver-utils | 7.7+8
Package's Suggests field is empty.
--- Output from package bug script ---
Desktop environment: XDG_CURRENT_DESKTOP=KDE
--
---------------------
Alexander Kernozhitsky
More information about the Pkg-freedesktop-maintainers
mailing list