Snapcraft 9 incorrectly sets LD_LIBRARY_PATH and QT_LIBRARY_PATH in the extensions
Metadata
Current evaluation
Fixed in merged PR #6366, restoring #6016 on main: KDE Neon 6 configures library paths in its launcher, and lxqt-support symlinks are corrected.
Resolution: closed resolved
Reason: PR #6366 was merged to fix #6327. It reapplied the #6016 launcher-based fix on main and restored the omitted lxqt-support symlink corrections.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### Check existing issues
- [x] I've verified that this request isn't described by any existing issues.
### Request
Don't set `LD_LIBRARY_PATH` and `QT_LIBRARY_PATH` in the desktop extensions.
The fix is to apply the fixes from #6016 to `main`.
Additionally, Snapcraft should correct the symlinks for `"$SNAP/lxqt-support"` as done in #6016.
### The problem it solves
Last year, #5917 added `LD_LIBRARY_PATH` to the extension’s `build-environment`. This prevents Snapcraft from setting a [default `LD_LIBRARY_PATH`](https://github.com/canonical/snapcraft/blob/e8a53bfb50e29918155dedec3bb7298f973f374c/snapcraft/meta/snap_yaml.py#L524-L568), so it had to be moved to the launcher script in #6016.
#6016 landed on the `hotfix/8.14` branch. When I merged that branch back to main in [#6104](https://github.com/canonical/snapcraft/pull/6104), the fix in #6016 got partially applied in the merge. Thus, Snapcraft 9.0 never got the fix.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed in merged PR #6366, restoring #6016 on main: KDE Neon 6 configures library paths in its launcher, and lxqt-support symlinks are corrected. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed in merged PR #6366, which applies the #6016 launcher-based library-path fix to main and restores lxqt-support symlink corrections omitted from Snapcraft 9. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed. The fix from PR #6016 was merged to main, correcting incorrect LD_LIBRARY_PATH and QT_LIBRARY_PATH settings in desktop extensions and fixing lxqt-support symlinks. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
5
Complexity:
15
Confidence:
90
Support Request:
0
|
keep open | Snapcraft 9 incorrectly sets LD_LIBRARY_PATH and QT_LIBRARY_PATH in desktop extensions due to a partial merge. The fix from #6016 needs to be applied to main. Currently triaged and awaiting implementation. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
5
Complexity:
20
Confidence:
90
Support Request:
0
|
keep open | Snapcraft 9 incorrectly sets LD_LIBRARY_PATH and QT_LIBRARY_PATH in desktop extensions due to a partial merge of a hotfix. Requires applying the fix from PR #6016 to main and correcting symlinks. Currently triaged and awaiting implementation. |
Update history
| Date | Change |
|---|---|
| closed |
Related work
-
Likely Fixed By:
canonical/snapcraft#6366
(confidence 100%)
Merged PR that restored the library-path and lxqt-support fixes omitted from Snapcraft 9.
-
Related To:
canonical/snapcraft#6016
(confidence 100%)
Original merged fix, committed as 3fc9abd0b, that #6366 ported back to main.
-
Caused By:
canonical/snapcraft#6104
(confidence 95%)
The release-branch merge partially applied #6016, leaving Snapcraft 9 without the complete fix.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #6366 fix(kde-neon-6): don't modify LD_LIBRARY_PATH | snapcraft | merged | Merged PR #6366 reapplies #6016 onto main: KDE Neon 6 no longer sets LD_LIBRARY_PATH/QT_PLUGIN_PATH in snapcraft.yaml (moved to the launcher) and lxqt-support is updated, fixing #6327 (SNAPCRAFT-1365). | |
| #6016 fix(kde): don't modify LD_LIBRARY_PATH | snapcraft | merged | Merged in PR #6016 (commit 3fc9abd0b), removing Snapcraft-added LD_LIBRARY_PATH and QT_LIBRARY_PATH from KDE Neon 6 in favor of launcher configuration. | |
| #6002 Fix kde-neon-6 LD_LIBRARY_PATH | snapcraft | closed | Superseded by merged PR canonical/snapcraft#6016 (commit 3fc9abd0b), which corrected KDE Neon 6 environment handling by relying on launcher configuration. | |
| #5904 Add the lxqt-support plug when creating Snap apps that use the kde-neon-6 extension. | snapcraft | closed | Fixed by merged PR #5917 (commit 70275c88a): the kde-neon-6 extension now adds the lxqt-support-core24 content plug, LD_LIBRARY_PATH/QT_PLUGIN_PATH env setup and Kvantum layout; shipped in Snapcraft 8.14. |