← Back to issue list

snap-based programs complain about locale, permission

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1982401
Type
issue
State
open
Author
~mardy
Labels
—
Created
Updated
Closed
—

Current evaluation

Desktop snap launchers emit bogus locale warnings and read an AppArmor-blocked BASH_ENV file. The .bashrc cause is confirmed, but no fix is recorded; locale tracking was split into #1983399.

Suggested action: keep open

Reason: The AVC log shows snap.chromium.chromium being denied access to /home/eggert/.bashrc, and unsetting BASH_ENV removes that error; the maintainer traced this to noninteractive Bash but left -p as an unresolved option. The remaining issue is well isolated, while the locale diagnostics were explicitly split into #1983399.

Evaluated by: mr-cal-bot

Impact: 36 Quick Win: 18 Complexity: 42 Confidence: 89 Actionability: 84

Issue body

This is a followup to Launchpad Bug#1959845, with more information about the bug. I am running Ubuntu 22.04 LTS on x86-64 with current patches. I have snapd 2.55.5+22.04. When I run the shell command "chromium --version" and attempt to debug the resulting situation a bit, I see the following: $ chromium --version /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8) /bin/bash: /home/eggert/.bashrc: Permission denied Chromium 103.0.5060.114 snap $ echo $SHELL /bin/bash $ ls -l $HOME/.bashrc -r--r--r-- 1 eggert eggert 420 Apr 25 2002 /home/eggert/.bashrc $ env | grep en_US LC_ALL=en_US.utf8 $ locale LANG=C LANGUAGE= LC_CTYPE="en_US.utf8" LC_NUMERIC="en_US.utf8" LC_TIME="en_US.utf8" LC_COLLATE="en_US.utf8" LC_MONETARY="en_US.utf8" LC_MESSAGES="en_US.utf8" LC_PAPER="en_US.utf8" LC_NAME="en_US.utf8" LC_ADDRESS="en_US.utf8" LC_TELEPHONE="en_US.utf8" LC_MEASUREMENT="en_US.utf8" LC_IDENTIFICATION="en_US.utf8" LC_ALL=en_US.utf8 $ locale -a | grep en_US en_US.iso885915 en_US.utf8 $ LC_ALL=C chromium --version /bin/bash: /home/eggert/.bashrc: Permission denied Chromium 103.0.5060.114 snap As you can see, I get some bogus diagnostics about the locale and the .bashrc permissions. My locale is fine - though evidently snap packages can't use it. I do have a .bashrc file. This file is not executable and it shouldn't be executable as it's not intended to be a standalone command. It has worked just fine for decades, when I log in via Bash or run Bash in the usual way. I reported a similar problem with Firefox in Launchpad Bug#1959845, and the response was "this is a bug with the snap packaging of Firefox, not with snapd. Please file a bug with Mozilla upstream". Although I did so here: https://bugzilla.mozilla.org/show_bug.cgi?id=1753320 their response was that it wasn't a Firefox bug. And now that I see a similar problem with Chromium it appears that this is a snapd issue, not an issue with individual programs.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 36
Quick Win: 18
Complexity: 42
Confidence: 89
Actionability: 84
keep open Desktop snap launchers emit bogus locale warnings and read an AppArmor-blocked BASH_ENV file. The .bashrc cause is confirmed, but no fix is recorded; locale tracking was split into #1983399.
stealth/space-bunny-alpha
Impact: 45
Quick Win: 21
Complexity: 42
Confidence: 91
Actionability: 82
keep open Snap desktop launchers emit misleading locale and .bashrc errors. AppArmor denial is traced to Bash reading BASH_ENV; locale diagnostics were split into a separate desktop-integration issue.
stealth/space-bunny-alpha
Impact: 38
Quick Win: 11
Complexity: 62
Confidence: 90
Actionability: 77
needs triage Chromium and Firefox snaps emit misleading locale and .bashrc permission diagnostics. The reproducible runtime report remains untriaged and may belong to snapd rather than Snapcraft.
qwen3.6-35b-a3b-mtp-q6
Impact: 55
Quick Win: 36
Staleness: 85
Complexity: 35
Confidence: 65
Support Request: 25
needs triage Snap-based programs (Chromium, Firefox) report locale and .bashrc permission errors when executed. Issue is 1505 days old with no maintainer engagement, labels, or comments.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 45
Confidence: 85
Support Request: 20
close stale User reports snap-based programs trigger bash locale and .bashrc permission warnings. Unlabelled, no maintainer comments, inactive for ~4 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 60
Confidence: 80
Support Request: 10
close stale Snap-based programs trigger bash warnings about locale and .bashrc permissions. The report is unlabelled, has zero maintainer comments, and has been inactive for over four years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 60
Confidence: 85
Support Request: 15
needs triage Reports snapd spawning bash with incorrect locale and false permission denied warnings for .bashrc when running snap packages. Untriaged, no maintainer comments, over 3 years old.

Update history

Date Change
created

Related work

Related issues

No related issues found above the similarity threshold.