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
nixos/geoclue2: restructure module made by worldofpeace #60681
Conversation
Also, I would appreciate if somebody could help me with finding a fix for the following problem: |
maybe
Though I don't know how geoclue handles changes to the config file, and just maybe reloads as expected? |
It does not. I have implemented your suggestion into the module. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're missing configuration that's upstream default, see what was removed in this commit 807f3f3.
@worldofpeace I hope that was what you meant? I hope so, otherwise @ me and I will revert and change what is needed. |
That's what I meant @leotaku, but we also need services.geoclue2.appConfig."io.elementary.desktop.agent-geoclue2" = {
isAllowed = true;
isSystem = true;
}; in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above comment
All options within geoclue.conf[0] have been made configurable. Additonally, we can now specify whether or not GeoClue should ask the agent to authorize an application like so: ``` services.geoclue2.appConfig."redshift" = { isAllowed = true; isSystem = true; }; ``` [0]: https://gitlab.freedesktop.org/geoclue/geoclue/blob/2.5.2/data/geoclue.conf.in Co-authored-by: worldofpeace <worldofpeace@protonmail.ch>
Co-authored-by: worldofpeace <worldofpeace@protonmail.ch>
Co-authored-by: worldofpeace <worldofpeace@protonmail.ch>
Fixed up the commit msg's there and added myself as a coauthor. Going to test this with GNOME3 and Pantheon and then I think we should be good to merge 👍 |
Great! Off-topic but is there some explanation on how working on other contributors pull requests/co-authoring works? I don't really know how to use these features which was why I created a separate pull request in the first place. |
For making a multi author commit this should probably explain that https://help.github.com/en/articles/creating-a-commit-with-multiple-authors. Usually though what you can do is open a pr against my fork trying to merge your fixes into my branch. Either way I'm happy to see this continued 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested that GeoClue functionality in gnome-weather, gnome-maps, and gnome-calendar are unaffected by this change.
Motivation for this change
Changes to pull request #45306, motivations discussed there.
Restructured the module to use the
generators.toINI
function.I hope this fits what @michaelpj had in mind, please give me some feedback.
Also, if I understand everything correctly, the still-active review by @infinisil has already been addressed in the initial pr.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)