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
unclutter: Fix default value of $DISPLAY #24601
Conversation
See also #23834 |
@joachifm what do you think is wrong with this solution? |
It doesn't address the actual problem, as I see it. |
@joachifm what is the actual problem? that |
User services that rely on graphical.target are fundamentally broken, the dependency makes no sense. If it worked properly, DISPLAY would be set at the time the service is activated. |
@bennofs I think #17858 (comment) is the proper solution. |
@joachifm hmm. but you'd also have to import-env DISPLAY into the systemd user instance, right (as the systemd user instance does not expose DISPLAY to services by default afaik)? Also, isn't there only one systemd user instance for all sessions if a single user? What happens if a user is logged into multiple graphical terminals? Perhaps we should merge this in the mean time, and remove it again when we figure out a proper solution. I don't think that this will hurt too much, no? |
My primary objection is about correctness, not pragmatics, so please go ahead. I don't use these servies, so have no real stake in them. I'll just note that I think |
To clarify, the main problem is using dependencies and ordering in these cases, as they are inherently nonsensical and so require kludges like this. You could for example activate the unit manually in xinitrc, to make use of systemd for supervision & whatnot, I see nothing wrong with that. |
Ok then I will merge this for now. We already have an issue for improving the general situation. |
Motivation for this change
same as #17746
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)