← Back to issue list

PATH does not include /usr/local/bin and /usr/local/sbin

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1661023
Type
issue
State
closed
Author
~apachelogger
Labels
isv
Created
Updated
Closed

Current evaluation

Closed unresolved after years of inactivity; snap-confine was named as the intended fix, but /usr/local/bin and /usr/local/sbin remained outside snap PATH.

Resolution: closed stale

Reason: No resolving merge or commit was identified. The issue remained open for years after a comment stating it would be fixed in snap-confine, then closed without a documented resolution.

Evaluated by: mr-cal-bot

No scores available.

Issue body

The xdg-open shim is placed in /usr/local/bin/xdg-open in the ubuntu-core snap. Since /usr/local/{sbin,bin} is not in the default PATH of snaps the shim is however not found unless explicitly called with full path. PATH should include /local/ variants to make the shim work.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Closed unresolved after years of inactivity; snap-confine was named as the intended fix, but /usr/local/bin and /usr/local/sbin remained outside snap PATH.
stealth/space-bunny-alpha — closed stale Closed unresolved after years of inactivity. Although snap-confine was named as the intended fix, /usr/local/bin and /usr/local/sbin remained outside snap PATH.
stealth/space-bunny-alpha — closed stale Closed unresolved in Launchpad bug #1661023; /usr/local/bin and /usr/local/sbin remained absent from snap PATH, leaving the xdg-open shim undiscoverable.
qwen/qwen3.6-35b-a3b — — Abandoned and closed without resolution. The snap PATH configuration remains unchanged, still excluding /usr/local/bin and /usr/local/sbin. No fix was implemented for the inaccessible xdg-open shim.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The request to update the snap default PATH to include /usr/local/bin and /usr/local/sbin was abandoned due to prolonged inactivity and zero comments.

Update history

Date Change
created

Related work

  • Likely Fixed By: snap-confine (confidence 45%)

    A maintainer said snap-confine would fix the problem, but no concrete PR or commit was identified.

Related issues

Issue Project State Summary Similarity
#564 fix(snap): use snap bin paths if in a snap craft-parts closed PR #564 was closed unmerged after unresolved review comments and prolonged inactivity; its Snap-aware binary PATH change never landed in craft-parts.
73%