View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000468 | AlmaLinux-9 | flatpak | public | 2024-05-27 05:13 | 2024-05-27 05:13 |
Reporter | speeddymon | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | x86_64 | OS | AlmaLinux | OS Version | 9 |
Summary | 0000468: /etc/profile.d/flatpak.sh bugs | ||||
Description | Hello, This profile script seems to not be working properly for my WSL2 AlmaLinux 9 install. I installed zsh from linuxbrew and set it as my default shell for my non-root user. My root user account is still using bash. When I start AlmaLinux, in my shell environment as a user (zsh), $XDG_DATA_DIRS does not contain 2 flatpak related directories which are supposed to be added by this script. If startup a new zsh shell from within the first one, it gets properly set for that lower shell. If I start bash from zsh, it works. If I change my shell back to bash and reboot, it works. It seems to only break for zsh interactive login shells (where echo $0 shows "-zsh" not "zsh") I worked around this kinda hackily. I added the below to ~/.zshenv: export XDG_DATA_DIRS=/home/myuser/.local/share/flatpack/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share${XDG_DATA_DIRS:-} I found that if I don't explicitly include "/usr/local/share:/usr/share" in my ~/.zshenv, then /etc/profile.d/flatpak.sh messes up even more and doesn't add those 2 paths to the variable either. | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2024-05-27 05:13 | speeddymon | New Issue |