extensions/desktop: preload bindtextdomain from snap first if it exists
Metadata
Current evaluation
Merged #3738 via commit 1ad71aaff: desktop-launch now prefers the snap's bindtextdomain.so, avoiding architecture-mismatched LD_PRELOAD errors.
Resolution: closed resolved
Reason: PR #3738 was merged into main as merge commit f57677b16. Commit 1ad71aaff changes preload ordering to use the snap-local library before gnome-platform, fixing the reported preload failure.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `make lint`?
- [ ] Have you successfully run `pytest tests/unit`?
-----
This fixes error caused by `desktop-launch` loading `amd64` `bindtextdomain.so` first from `gnome-platform` then `i386` from snap.
```
ERROR: ld.so: object '/snap/test/x1/gnome-platform/$LIB/bindtextdomain.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged #3738 via commit 1ad71aaff: desktop-launch now prefers the snap's bindtextdomain.so, avoiding architecture-mismatched LD_PRELOAD errors. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in #3738 (commit 1ad71aaff): desktop-launch now prioritizes the snap's bindtextdomain.so over gnome-platform, preventing architecture-mismatched LD_PRELOAD errors. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged. Fixes an ld.so preload error in desktop-launch by prioritizing the snap's bindtextdomain.so over the gnome-platform version. Approved, passed CI, and merged with a three-line change. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into main. Resolves an ld.so preload error in desktop-launch by prioritizing the snap's bindtextdomain.so over the gnome-platform version. A user later reported persistence and received a workaround. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcore/snapcraft#4501
(confidence 85%)
Later follow-up stopped bindtextdomain preloading for Wine snaps.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3569 extensions: preload bindtextdomain from content snap if it exists | snapcraft | merged | Merged #3569 via ec318b179, preloading bindtextdomain from the GNOME content snap when present; validated on edge/pr-3569. | |
| #4501 extensions/desktop: don't preload bindtextdomain for wine snaps | snapcraft | merged | Merged #4501 as commit 58964d874, preventing the desktop extension from preloading gnome-platform bindtextdomain for Wine snaps. |