Successfully tested by doing the following:
In a fully up-to-date jammy VM:
$ sudo apt -y install libkf5config-bin
$ export XDG_CURRENT_DESKTOP=KDE
$ export KDE_SESSION_VERSION=5
$ xdg-settings get default-web-browser
firefox.desktop
$ xdg-settings check default-web-browser firefox.desktop
/usr/bin/xdg-settings: 734: Bad substitution
Then enabled the jammy-proposed pocket and updated xdg-utils to version
1.1.3-4.1ubuntu1.22.04.1:
$ xdg-settings get default-web-browser
firefox.desktop
$ xdg-settings check default-web-browser foobar.desktop
no
$ xdg-settings check default-web-browser firefox.desktop
/usr/bin/xdg-settings: 734: [: x!: unexpected operator
yes
The result is as expected in all cases. Note the extra "/usr/bin/xdg-
settings: 734: [: x!: unexpected operator" on stderr in the last test.
This is not expected, but it is harmless as the output on stdout is as
expected. I will report a follow-up upstream bug to get that addressed.
** Tags removed: verification-needed-jammy
** Tags added: verification-done-jammy
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1970594
Title:
"xdg-settings check default-web-browser something.desktop" fails in
Kubuntu 22.04: Bad substitution
To manage notifications about this bug go to:
https://bugs.launchpad.net/xdg-utils/+bug/1970594/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs