Public bug reported:
On Kubuntu 26.04 (KDE Plasma), opening an attachment from the Thunderbird snap
always shows the app chooser dialog, even after choosing the same application
(Okular) many times and ticking "always open with".
Steps to reproduce:
1. Install the thunderbird snap on Kubuntu 26.04.
2. In Thunderbird, set PDF to "Use system handler (default)".
3. Open a PDF attachment, choose Okular in the portal app chooser.
4. Repeat 3+ times.
Expected: after 3 consecutive identical choices the portal stops asking
and opens Okular directly.
Actual: the chooser appears every time.
Analysis (dbus-monitor log attached, personal data redacted):
- Thunderbird calls org.freedesktop.portal.OpenURI.OpenFile with only an
"activation_token" option, i.e. it does NOT request "ask".
- The portal calls AppChooser.ChooseApplication with app id
"thunderbird_thunderbird".
- After the choice, the portal calls PermissionStore.SetPermission on
desktop-used-apps / application/pdf for app "thunderbird_thunderbird"
with ['org.kde.okular', '1', '3'].
- The resulting Changed signal shows NO "thunderbird_thunderbird" entry;
instead the existing "snap.thunderbird" entry is reset to 1/3.
- So the lookup uses one ID and the saved entry uses another, and the use
count can never reach the threshold.
Confirmed manually: calling SetPermission with app "thunderbird_thunderbird"
and ['org.kde.okular','3','3'] via gdbus also ends up stored as
"snap.thunderbird" (3/3), and the chooser still appears.
There is also a stray entry "thunderbird_thunderbird (1)".
Current desktop-used-apps / application/pdf content:
({'snap.obsidian': ['org.kde.okular', '3', '3'],
'snap.thunderbird': ['org.kde.okular', '3', '3'],
'thunderbird_thunderbird (1)': ['org.kde.okular', '3', '3']}, <byte 0x00>)
Possibly related:
- LP: #2143896 (xdg-document-portal rejects Snap app IDs (firefox_firefox))
- same snap.<name> vs <name>_<name> ID mismatch, fixed there for the
document portal but apparently not for OpenURI/desktop-used-apps.
- Same symptom reported for the Firefox snap on 26.04:
https://discourse.ubuntu.com/t/82248
- Upstream: https://github.com/flatpak/xdg-desktop-portal/issues/769
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: xdg-desktop-portal 1.21.1+ds-1ubuntu3.1
ProcVersionSignature: Ubuntu 7.0.0-43.43-generic 7.0.14
Uname: Linux 7.0.0-43-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Mon Nov 16 20:14:08 2026
InstallationDate: Installed on 2017-08-07 (3388 days ago)
InstallationMedia: Kubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215)
SourcePackage: xdg-desktop-portal
UpgradeStatus: Upgraded to resolute on 2026-10-17 (30 days ago)
** Affects: xdg-desktop-portal (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute wayland-session
** Attachment added: "portal-log-redacted.txt"
https://bugs.launchpad.net/bugs/2174640/+attachment/6018579/+files/portal-log-redacted.txt
--
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to xdg-desktop-portal in Ubuntu.
https://bugs.launchpad.net/bugs/2174640
Title:
OpenURI portal never remembers app choice for Thunderbird snap: looks
up "thunderbird_thunderbird" but permission store saves it as
"snap.thunderbird"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xdg-desktop-portal/+bug/2174640/+subscriptions
--
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs