fix(lightdm): expose Nix desktop entries on Arch #96
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/dotfiles!96
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/lightdm-arch-xdg-data-dirs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root cause
After moving the Arch Qtile session to LightDM,
j4-dmenu-desktopcan still see Arch-installed applications such as Firefox but misses applications installed through Nix/Home Manager. LightDM launches Qtile outside the interactive shell, so desktop-entry discovery depends on the environment exported by.xprofile.The previous fix only prepended
~/.nix-profile/shareand trusted whatever Home Manager supplied inXDG_DATA_DIRS. That is not sufficient for every Nix profile layout used on a non-NixOS host.Fix
XDG_DATA_DIRSexplicitly in.xprofilefor the LightDM session;~/.nix-profile/share;~/.local/state/nix/profiles/profile/sharepath;/nix/var/nix/profiles/per-user/$USER/profile/share;/etc/profiles/per-user/$USER/sharewhen present in the deployment model;/usr/local/shareand/usr/share;XDG_DATA_HOMEand the correctedXDG_DATA_DIRSinto the user systemd environment.Regression coverage
The launcher regression now executes
.xprofilein a synthetic LightDM-style environment with Home Manager supplying its ownXDG_DATA_DIRS, then verifies both Arch and Nix application roots survive and no duplicate directories are introduced.No NixOS host/session configuration is changed.