You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the logged in user comes from AD the getent call returns an empty string making the REALHOME var having an incorrect value.
This makes some apps (e.g. snapped browsers like Firefox and Chromium) to incorrectly set their home under ~/snap//... instead of /home/. This nests directories like Downloads unnecessarily deep.
I've experimented with setting REALHOME to ${SNAP_REAL_HOME} with good results, but maybe the getent call has some other intended implications that I am not aware of.
To Reproduce
Log in to Gnome as an Active Directory user.
Launch browser (firefox or chrome) - make sure there's no existing config (we are interested in the default Downloads location).
Download a file via the browser.
Check where it was downloaded.
Environment
Up to date Ubuntu 22.04.3 connected to AD according to this tutorial.
snapcraft.yaml
Reproducible with firefox and chromium available from the snap store.
- firefox (116.0.3 Mozilla Firefox Snap for Ubuntu canonical-002 - 1.0)
- chromium (Version 116.0.5845.110 (Official Build) snap (64-bit))
- snapd 2.58+22.04.1
Relevant log output
Default download dir is:
~/snap/firefox/common/Downloads
~/snap/chromium/current/Downloads
Additional context
No response
The text was updated successfully, but these errors were encountered:
dargad
added
the
bug
Actual bad behavior that don't fall into maintenance or documentation
label
Sep 5, 2023
@sergio-costas can you please take a look at this? Our use of REALHOME predated the existence of SNAP_REAL_HOME. I suspect we can just replace REALHOME with SNAP_REAL_HOME, but that requires some testing to ensure it doesn't regress.
Thank you @sergio-costas. I have just tested it and can confirm that REALHOME is set correctly with gnome from the latest/stable/ad-fix channel.
This results in both: Firefox and Chromium downloading files to ~/Downloads by default.
Bug Description
When the logged in user comes from AD the getent call returns an empty string making the REALHOME var having an incorrect value.
This makes some apps (e.g. snapped browsers like Firefox and Chromium) to incorrectly set their home under ~/snap//... instead of /home/. This nests directories like Downloads unnecessarily deep.
More details in LP: #2025447.
I've experimented with setting REALHOME to ${SNAP_REAL_HOME} with good results, but maybe the getent call has some other intended implications that I am not aware of.
To Reproduce
Environment
Up to date Ubuntu 22.04.3 connected to AD according to this tutorial.
snapcraft.yaml
Reproducible with firefox and chromium available from the snap store. - firefox (116.0.3 Mozilla Firefox Snap for Ubuntu canonical-002 - 1.0) - chromium (Version 116.0.5845.110 (Official Build) snap (64-bit)) - snapd 2.58+22.04.1
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: