Code: Select all
. /etc/profile
export PATH
export XDG_DATA_DIRS
In case anyone is interested what specific problem this fixed, read on:
I noticed that after installing zoom-client snap, its functionality is somewhat limited. I identified the problem as the window manager (xfce4-session in my case) being unaware of PATH and XDG_DATA_DIRS changes required by snap (in general, not just Zoom). These changes are put by snap installer in /etc/profile.d/apps-bin-path.sh Aside from some minor inconveniences (no zoom-client in path nor in application launcher) this also caused a bigger problem: inability to login to Zoom using external authentication (e.g. Google) or open Zoom links. This functionality is achieved by a web browser, which in turn relies on configuration of zoommtg MimeType, which in turn relies on XDG_DATA_DIRS having included /var/lib/snapd/desktop/ I understand these would all work, had /etc/profile.d/apps-bin-path.sh (or, more generally, /etc/profile) been sourced by Xsession. Hence, the solution as above.
Asking because I feel like I missed something important, after all /etc/profile and Xsession are decades old. So it's not like sourcing one by the other should be a new idea (in fact I saw some heated discussion on the topic, elsewhere). Also, I vaguely remember this actually working without any messing from my side in Debian 11