Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #272313 > unrolled thread
| Started by | Giovanni Biscuolo <g@xelera.eu> |
|---|---|
| First post | 2024-08-19 17:40 +0200 |
| Last post | 2024-08-20 04:50 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.user
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
LXDE startlxde is resetting XDG_DATA_DIRS on Debian 12! (was Re: customize Debian 11 evironment in lightdm...) Giovanni Biscuolo <g@xelera.eu> - 2024-08-19 17:40 +0200
Re: LXDE startlxde is resetting XDG_DATA_DIRS on Debian 12! (was Re: customize Debian 11 evironment in lightdm...) Max Nikulin <manikulin@gmail.com> - 2024-08-20 04:50 +0200
| From | Giovanni Biscuolo <g@xelera.eu> |
|---|---|
| Date | 2024-08-19 17:40 +0200 |
| Subject | LXDE startlxde is resetting XDG_DATA_DIRS on Debian 12! (was Re: customize Debian 11 evironment in lightdm...) |
| Message-ID | <JdcE9-688r-7@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Hello,
I'm following up a very old thread on debian-user (May 2022) since I
finally understand what is _resetting_ my XDG_DATA_DIRS... oh my!!!
To help-guix:
Giovanni Biscuolo <g@xelera.eu> writes:
> I'm trying to customize my user environment when using the lightdm
> display manager (then the LXDE desktop environment)
after the first tests, I also used gdm3 with the very same results
> I need to customize some variables so I can see Guix installed
> applications in my desktop menu, in particular I need to customize
> XDG_DATA_DIRS
...but "something" in LXDE (and only in LXDE) was _resetting_ my
XDG_DATA_DIRS customization
[...]
Since then, I upgraded to Debian 12 (bookworm) and the issue is still
here.
Since then, I changed the way I'm customizing user's environment in
order to allow users to use Guix installed programs (via PATH
customization) and see them in the "Application menu" of their preferred
desktop environment (via XDG_DATA_DIRS customization).
The fact is that my environment setup - that now is the same provided my
the Guix binary install script [1] coupled with a per-user .xsessionrc
sourcing the relevant environment variables scripts [2] - IS WORKING
with all desktop environments I tested... except LXDE.
OK, so after this short recap to provide some context, this is the
head of the /usr/bin/startlxde script that starts an lxsession [3]:
--8<---------------cut here---------------start------------->8---
#!/bin/sh
export XDG_DATA_DIRS="/usr/local/share/:/usr/share/:/usr/share/gdm/:/var/lib/menu-xdg/"
if [ -z "$XDG_CONFIG_HOME" ]; then
export XDG_CONFIG_HOME="$HOME/.config"
fi
if [ -z "$XDG_DATA_HOME" ]; then
export XDG_DATA_HOME="$HOME/.local/share"
fi
--8<---------------cut here---------------end--------------->8---
That is literally _resetting_ all previous XDG_DATA_DIRS variable
content... why?!?!?
AFAIU this should be a bug in /usr/bin/startlxde.
Actually a Debian bug for this issue in package openbox-lxde-session
(that provides /usr/bin/startlxde) has been already filed on 2018-08-16,
so I'm not going to duplicate it:
«openbox-lxde-session: /usr/bin/startlxde overrides XDG_DATA_DIRS making
all local .desktop files unable to show on menu»
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906288
That's it! :-(
Happy hacking! Gio'
[1] https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh
[2] this way:
if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi
[3] as found in /usr/share/xsessions/LXDE.desktop defining how to start
LXDE desktop session (Exec=/usr/bin/startlxde).
--
Giovanni Biscuolo
Xelera IT Infrastructures
[toc] | [next] | [standalone]
| From | Max Nikulin <manikulin@gmail.com> |
|---|---|
| Date | 2024-08-20 04:50 +0200 |
| Message-ID | <Jdn6x-6eGC-3@gated-at.bofh.it> |
| In reply to | #272313 |
On 19/08/2024 22:20, Giovanni Biscuolo wrote: > OK, so after this short recap to provide some context, this is the > head of the /usr/bin/startlxde script that starts an lxsession [3]: [...] > export XDG_DATA_DIRS="/usr/local/share/:/usr/share/:/usr/share/gdm/:/var/lib/menu-xdg/" [...] > Actually a Debian bug for this issue in package openbox-lxde-session > (that provides /usr/bin/startlxde) has been already filed on 2018-08-16, > so I'm not going to duplicate it: [...] > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906288 You may inspect Debian patches for lxde-common or upstream sources to figure out the origin of that line and to report issue to upstream developers if it is not Debian-specific. However I am not sure that LXDE is actively maintained, so you may start to looking around for a replacement. P.S. I have dropped guix from Cc.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web