Skip to content
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

nix-profile-daemon.fish: XDG_DATA_DIRS: .profile/share #12414

Merged

Conversation

ilya-bobyr
Copy link
Contributor

Motivation

It seems reasonable to add the share folder from the user profile into $XDG_DATA_DIRS both for daemon and profile execution. Nix could add package shared files into this folder regardless of how the nix daemon itself is running.

This change reduces the differences between nix-profile-daemon.fish and nix-profil.fish to the following:

https://gist.github.com/ilya-bobyr/c957a9f998b85833064b2d64b4ae4062#file-nix-profile-fish-2-diff

Context

This is related to point 6 in the issue where the difference between daemon and non-daemon profiles are listed.


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

It seems reasonable to add the `share` folder from the user profile into
`$XDG_DATA_DIRS` both for daemon and profile execution.  Nix could add
package shared files into this folder regardless of how the nix daemon
itself is running.
@ilya-bobyr ilya-bobyr requested a review from edolstra as a code owner February 4, 2025 00:35
Copy link
Member

@edolstra edolstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems okay given that scripts/nix-profile-daemon.sh.in also does this.

@edolstra edolstra merged commit 02e6286 into NixOS:master Feb 4, 2025
12 checks passed
@ilya-bobyr ilya-bobyr deleted the fish-profile-daemon-XDG_DATA_DIRS branch February 5, 2025 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants