I use bash and still face this issue. The fix proposed at #18 doesn't work entirely. You should add double quotes to the PATH and print the new line properly by replacing echo with printf:
mkdir -p ~/.config/environment.d printf "PATH=\"$PATH:/snap/bin\"\nXDG_DATA_DIRS=\"${XDG_DATA_DIRS:-/usr/local/share:/usr/share}:/var/lib/snapd/desktop\"" > ~/.config/environment.d/60-snap-icons-and-bin.conf
I use bash and still face this issue. The fix proposed at #18 doesn't work entirely. You should add double quotes to the PATH and print the new line properly by replacing echo with printf:
mkdir -p ~/.config/ environment. d "$PATH: /snap/bin\ "\nXDG_ DATA_DIRS= \"${XDG_ DATA_DIRS: -/usr/local/ share:/ usr/share} :/var/lib/ snapd/desktop\ "" > ~/.config/ environment. d/60-snap- icons-and- bin.conf
printf "PATH=\