View Issue Details

IDProjectCategoryView StatusLast Update
0000468AlmaLinux-9flatpakpublic2024-05-27 05:13
Reporterspeeddymon Assigned To 
Status newResolutionopen 
Platformx86_64OSAlmaLinuxOS Version9
Summary0000468: /etc/profile.d/ bugs

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/ messes up even more and doesn't add those 2 paths to the variable either.
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-05-27 05:13 speeddymon New Issue