fix(qtile): inherit Home Manager session environment #81

Merged
lost-rob0t merged 1 commit from agent/fix-j4-nix-app-discovery into master 2026-08-19 00:19:08 +00:00
lost-rob0t commented 2026-08-19 00:18:56 +00:00 (Migrated from github.com)

Summary

  • source the standalone Home Manager session variables before LightDM starts Qtile
  • prepend Home Manager, per-user Nix, and system profile data directories to XDG_DATA_DIRS
  • import the resulting PATH and XDG_DATA_DIRS into the user systemd environment

Root cause

After switching from startx/.xinitrc to LightDM, the Qtile session no longer inherited Home Manager's login-shell environment. j4-dmenu-desktop therefore could not discover .desktop files under the Home Manager profile even though packages such as Brave were installed.

Impact

Application discovery works generically for Home Manager and Nix profile applications instead of special-casing Brave.

## Summary - source the standalone Home Manager session variables before LightDM starts Qtile - prepend Home Manager, per-user Nix, and system profile data directories to `XDG_DATA_DIRS` - import the resulting `PATH` and `XDG_DATA_DIRS` into the user systemd environment ## Root cause After switching from `startx`/`.xinitrc` to LightDM, the Qtile session no longer inherited Home Manager's login-shell environment. `j4-dmenu-desktop` therefore could not discover `.desktop` files under the Home Manager profile even though packages such as Brave were installed. ## Impact Application discovery works generically for Home Manager and Nix profile applications instead of special-casing Brave.
Sign in to join this conversation.
No description provided.