> Rodrigo Morales <m...@rodrigomorales.site> hat am 22.02.2024 18:56 CET > geschrieben: > I noticed that =/home/rodrigo/.guix-profile/lib= was included to the > variable =XDG_DATA_DIRS= (see result of the command below). > > #+BEGIN_SRC sh > echo $XDG_DATA_DIRS | tr ':' '\n' | sort > #+END_SRC > > #+RESULTS: > #+begin_example > /gnu/store/16kl9gx8k8ygkcj7dw1xrpw2p1h1bhjh-emacs-29.1/share > /gnu/store/23rprfqw8jy1xr0bcfvq644s2jmycdkr-gtk+-3.24.37/share > /gnu/store/gc4q34l7yc63qv2qcqq7avmf34hdpbwp-shared-mime-info-1.15/share > /gnu/store/m26kdkgr4c09wc0djn2pgcz9jl7j2rw1-glib-2.72.3/share > /home/rodrigo/.guix-home/profile/share > /home/rodrigo/.guix-profile/lib > /home/rodrigo/.guix-profile/share > /home/rodrigo/.guix-profile/share > /home/rodrigo/.local/share/flatpak/exports/share > /usr/share/gnome > /usr/share/i3 > /var/lib/flatpak/exports/share > /var/lib/snapd/desktop > #+end_example
This shouldn't be due to the changes you made - ManagerEnvironment only sets it for the systemd user management process, not for any spawned processes and especially not your shell. You mentioned below that you removed ~/.config/systemd/user.conf, is /home/rodrigo/.guix-profile/lib still in XDG_DATA_DIRS after that? > The problem I noticed was that applications that were installed > through =guix package -i= took more than usual to start. > > Inkscape took 25 seconds to print the version. > > #+BEGIN_SRC text > $ time /home/rodrigo/.guix-profile/bin/inkscape --version > > (inkscape:42859): dbind-WARNING **: 11:58:15.650: AT-SPI: Error retrieving > accessibility bus address: org.freedesktop.DBus.Error.NoReply: Did not > receive a reply. Possible causes include: the remote application did not send > a reply, the message bus security policy blocked the reply, the reply timeout > expired, or the network connection was broken. > Inkscape 1.2.1 (9c6d41e410, 2022-07-14) > /home/rodrigo/.guix-profile/bin/inkscape --version 0.02s user 0.03s system > 0% cpu 25.072 total > $ echo $? > 0 > #+END_SRC I'm almost afraid to hear the answer, but how many files are in /home/rodrigo/.guix-profile/lib (including all subdirectories)? My best guess here is that inkscape / thunar enumerate all files in XDG_DATA_DIRS on startup, and so they become slow if there's a lot of files. But, as mentioned above, setting ManagerEnvironment should not affect XDG_DATA_DIRS for them!