Re: customize Debian 11 evironment in lightdm (and in general?)
On Fri, 2022-05-06 at 19:07 +0200, Giovanni Biscuolo wrote:
[...]
> environment of lxsession:
>
> --8<---------------cut here---------------start------------->8---
>
> g@renaissance:~$ sudo sh -c "tr '\0' '\n' < /proc/16876/environ | grep XDG"
> [XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/:/var/lib/menu-xdg/
>
[...]
> --8<---------------cut here---------------end--------------->8---
>
> environment of lxpanel:
>
> --8<---------------cut here---------------start------------->8---
>
[...]
> XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/local/share/:/usr/share/:/usr/share/gdm/:/var/lib/menu-xdg/
>
> --8<---------------cut here---------------end--------------->8---
>
[...]
> So the XDG_DATA_DIRS is (re)setted between gdm-x-session and lxsession:
> I still have to find by what
Looks to me like it changed between lxsession and lxpanel by having a
second copy of the path prended to it, but without the trailing /
If it wasn't for the '/' difference I'd guess that whatever sets up
XDG_DATA_DIRS is following common pattern of prepending to a path like
XDG_DATA_DIRS=/some/directory1:/some/directory2:$XDG_DATA_DIRS
And that script is being called twice so you get two copies. Could
still be something like that, but the path getting processed in some
way before concatenating
--
Tixy
Reply to: