fix(lightdm): load Home Manager environment in X session #82

Merged
lost-rob0t merged 2 commits from agent/fix-lightdm-home-manager-env into master 2026-08-19 00:20:22 +00:00
lost-rob0t commented 2026-08-19 00:20:15 +00:00 (Migrated from github.com)

Summary

  • add ~/.xprofile so Arch LightDM loads the standalone Home Manager session environment before Qtile starts
  • prepend the Home Manager profile to XDG_DATA_DIRS so j4-dmenu-desktop discovers Home Manager .desktop files
  • import the graphical session environment into the user systemd manager
  • revert the NixOS-only Qtile startup change from #81 because this workstation is using Arch LightDM

Root cause

Arch LightDM starts Qtile through /etc/lightdm/Xsession, not ~/.xinitrc. The wrapper sources ~/.xprofile, so the Home Manager environment needs to be established there. Without the Home Manager profile in XDG_DATA_DIRS, applications such as Brave remain installed but are invisible to j4-dmenu-desktop.

Deployment

The repository uses GNU Stow, so after pulling the merge, stow . will link .xprofile into the home directory. A new LightDM login is required for the session environment to be rebuilt.

## Summary - add `~/.xprofile` so Arch LightDM loads the standalone Home Manager session environment before Qtile starts - prepend the Home Manager profile to `XDG_DATA_DIRS` so `j4-dmenu-desktop` discovers Home Manager `.desktop` files - import the graphical session environment into the user systemd manager - revert the NixOS-only Qtile startup change from #81 because this workstation is using Arch LightDM ## Root cause Arch LightDM starts Qtile through `/etc/lightdm/Xsession`, not `~/.xinitrc`. The wrapper sources `~/.xprofile`, so the Home Manager environment needs to be established there. Without the Home Manager profile in `XDG_DATA_DIRS`, applications such as Brave remain installed but are invisible to `j4-dmenu-desktop`. ## Deployment The repository uses GNU Stow, so after pulling the merge, `stow .` will link `.xprofile` into the home directory. A new LightDM login is required for the session environment to be rebuilt.
Sign in to join this conversation.
No description provided.