-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add nix dirs to XDG_DATA_DIRS
so it can pick up .desktop
files for GUI apps
#614
Comments
Oops I see that the files I referenced above are part of the base |
I think that's a solid idea! Since this installer doesn't own |
Many thanks for the reply @Hoverbear where Elco says:
I don't think that modifying |
The DS Nix installer is close to becoming a first-class citizen for installing nix packages on non-NixOS distributions. One current issue though is that
.desktop
files for GUI apps are not auto-picked-up by the DE. This is easy to rectify though. Simply add a file toetc/profile.d/
containing the following line:I called my file
nix-xdg-data-dirs.sh
but/etc/profile.d/
already containsnix.sh
which calls/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
so theXDG_DATA_DIRS
line could simply be added to this latter file by the installer.Using the syntax of the existing file
nix-daemon.sh
, I believe the correct line to add to it would be:This could go directly after the existing
export PATH
command.Many thanks for the great ongoing work!
The text was updated successfully, but these errors were encountered: