From: Giovanni Biscuolo <g@xelera.eu>
To: debian-user@lists.debian.org
Cc: help-guix@gnu.org
Subject: LXDE startlxde is resetting XDG_DATA_DIRS on Debian 12! (was Re: customize Debian 11 evironment in lightdm...)
Date: Mon, 19 Aug 2024 17:20:25 +0200 [thread overview]
Message-ID: <87msl8k092.fsf@xelera.eu> (raw)
In-Reply-To: <877d70c4cu.fsf@xelera.eu>
[-- Attachment #1: Type: text/plain, Size: 2810 bytes --]
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 849 bytes --]
parent reply other threads:[~2024-08-19 15:21 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <877d70c4cu.fsf@xelera.eu>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87msl8k092.fsf@xelera.eu \
--to=g@xelera.eu \
--cc=debian-user@lists.debian.org \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).