Confirming this bug. More distressingly, after removing flatpak from my system with apt, this change persisted; it left /etc/profile.d/flatpak.sh on my system which would automatically run on my main user, since it still had some leftover files in .local/share/flatpak, and would crash the desktop session upon logging in when it couldn't find relevant dependency.
Confirming this bug. More distressingly, after removing flatpak from my system with apt, this change persisted; it left /etc/profile. d/flatpak. sh on my system which would automatically run on my main user, since it still had some leftover files in .local/ share/flatpak, and would crash the desktop session upon logging in when it couldn't find relevant dependency.