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

How to set up? #7

Open
EvyBongers opened this issue Nov 23, 2021 · 1 comment
Open

How to set up? #7

EvyBongers opened this issue Nov 23, 2021 · 1 comment

Comments

@EvyBongers
Copy link
Contributor

Hi,

I recently installed localtime through AUR, but I just can't get it to work. I've looked at both the comments on the AUR website and the github issues.
When starting the systemd service, it fails after a couple of seconds, same as mentioned in #6:

Failed to start GeoClue2 Client: 'localtimed' disallowed, no agent for UID xxx

According to the documentation at https://stebalien.com/projects/localtime/, the required user should be created automatically by systemd-sysusers.service, but neither the AUR package, nor the repository Makefile install the required systemd config $PREFIX/lib/sysusers.d/localtime.conf as mentioned here. Because of that, I ran make install-user, which did create a system user and group, changing the UID reported in the systemd logs. Didn't solve the issue though.
Then I tried updating the geoclue config, based on what else I read in #6, but nothing I tried got it to work.

Question 1: is (manually) creating the system user still required? Wondering, since the systemd unit file says to dynamically create a user:

[Service]
User=USER
DynamicUser=true

Question 2: what manual configuration of geoclue is required for it to work? Is it at all possible to use localtime with geoclue these days?

@Stebalien
Copy link
Owner

I've pushed a patch that will auto start the demo agent if it isn't running. Unfortunately, upstream is Gnome which tends to be pretty hostile to anyone that's not "gnome".

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

No branches or pull requests

2 participants