[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-05-24 Thread Launchpad Bug Tracker
This bug was fixed in the package xdg-utils - 1.1.3-4.1ubuntu1.22.04.1 --- xdg-utils (1.1.3-4.1ubuntu1.22.04.1) jammy; urgency=medium * Cherry-pick an upstream merge request to remove bashisms from xdg-settings (LP: #1970594) - debian/source/options -

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-05-20 Thread Bug Watch Updater
** Changed in: xdg-utils Status: Unknown => New -- 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

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-05-18 Thread Dani Llewellyn
I've updated the PR with a fix for this ugly message -- 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

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-05-18 Thread Olivier Tilloy
Reported the "unexpected operator" error here: https://gitlab.freedesktop.org/xdg/xdg- utils/-/merge_requests/52#note_1389020. -- 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:

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-05-18 Thread Olivier Tilloy
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

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-05-17 Thread Brian Murray
Hello Olivier, or anyone else affected, Accepted xdg-utils into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/xdg- utils/1.1.3-4.1ubuntu1.22.04.1 in a few hours, and then in the -proposed repository. Please help us by testing this new

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-05-13 Thread Olivier Tilloy
** Description changed: + [Impact] + + The firefox snap (default in 22.04) will always report that it thinks + it's not the default browser (even when it actually is) for KDE users + (this can be seen when browsing to about:preferences). + + This is caused by an upstream bug in xdg-utils (using

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-05-13 Thread Olivier Tilloy
** Changed in: xdg-utils (Ubuntu Jammy) Status: Confirmed => In Progress -- 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

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-05-12 Thread Olivier Tilloy
** Also affects: xdg-utils (Ubuntu Jammy) Importance: Undecided Status: New ** Changed in: xdg-utils (Ubuntu Jammy) Status: New => Confirmed ** Changed in: xdg-utils (Ubuntu Jammy) Assignee: (unassigned) => Olivier Tilloy (osomon) ** Changed in: xdg-utils (Ubuntu Jammy)

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-05-12 Thread Launchpad Bug Tracker
This bug was fixed in the package xdg-utils - 1.1.3-4.1ubuntu2 --- xdg-utils (1.1.3-4.1ubuntu2) kinetic; urgency=medium * Cherry-pick an upstream merge request to remove bashisms from xdg-settings (LP: #1970594) - debian/source/options -

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-05-03 Thread Olivier Tilloy
** Changed in: xdg-utils (Ubuntu) Assignee: (unassigned) => Olivier Tilloy (osomon) ** Changed in: xdg-utils (Ubuntu) Status: Confirmed => In Progress ** Changed in: xdg-utils (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-05-03 Thread Dani Llewellyn
** Also affects: xdg-utils via https://gitlab.freedesktop.org/xdg/xdg-utils/-/issues/10 Importance: Unknown Status: Unknown -- 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:

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-05-03 Thread Olivier Tilloy
It turns out it's a known issue: https://gitlab.freedesktop.org/xdg/xdg- utils/-/issues/10. ** No longer affects: kubuntu-meta (Ubuntu) -- 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:

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-05-03 Thread Olivier Tilloy
Those are good points. I'm a bit baffled that this was not noticed by other users of xdg-settings earlier. Maybe KDE users don't usually rely on it? I'll file an upstream bug. ** Bug watch added: gitlab.freedesktop.org/xdg/xdg-utils/-/issues #10

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-04-29 Thread Dani Llewellyn
Why in stock Ubuntu and not Kubuntu, I think is because the offending code is inside functions that are named as though only KDE is supposed to use them. For example, the default browser break is inside a function named `check_browser_kde()`. There might be some logic to determine that your stock

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-04-29 Thread Olivier Tilloy
I suppose that would work (although I haven't actually tested to confirm, but it looks correct and I'm trusting your shell-fu). The real questions are: * why is this working in stock Ubuntu (where /bin/sh is also a symlink to dash) and not in Kubuntu? * why does the upstream project declare

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-04-29 Thread Dani Llewellyn
There is also a similar statement that needs fixing for DASH on line 1090: if [ x"!" == x"${binary:0:1}" ]; then ** Changed in: xdg-utils (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1970594] Re: "xdg-settings check default-web-browser something.desktop" fails in Kubuntu 22.04: Bad substitution

2022-04-28 Thread Dani Llewellyn
Can you try replacing the line with: if [ x"!" == x"$(printf %.1s "$browser")" ]; then and reverting back to dash? I think this might work in most posix shells, without requiring to move to bash. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed