http://bugzilla.opensuse.org/show_bug.cgi?id=1200355
Bug ID: 1200355 Summary: Access to the current location was denied by GeoClue! (openSUSE-15.4, REGRESSION) Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.4 Hardware: x86-64 OS: openSUSE Leap 15.4 Status: NEW Severity: Normal Priority: P5 - None Component: X11 Applications Assignee: screening-team-bugs@suse.de Reporter: duge@pre-sense.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: ---
redshift and redshift-gtk don't work on openSUSE-LEAP-15.4. This was working on openSUSE-LEAP-15.3, so it's an regression.
Error: Unable to start GeoClue client: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: 'redshift' disallowed, no agent for UID 1000. Access to the current location was denied by GeoClue!
Related Tumbleweed bug (contains a workaround and more information): Bug 1093592
http://bugzilla.opensuse.org/show_bug.cgi?id=1200355 http://bugzilla.opensuse.org/show_bug.cgi?id=1200355#c1
--- Comment #1 from Moritz Duge duge@pre-sense.de --- Tested with live cd: https://download.opensuse.org/distribution/leap/15.4/appliances/iso/openSUSE... sudo zypper in redshift
http://bugzilla.opensuse.org/show_bug.cgi?id=1200355
Andreas Stieger Andreas.Stieger@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Andreas.Stieger@gmx.de, | |masterpatricko@gmail.com, | |matthias@mailaender.name Assignee|screening-team-bugs@suse.de |masterpatricko@gmail.com Summary|Access to the current |redshift: access to the |location was denied by |current location was denied |GeoClue! (openSUSE-15.4, |by GeoClue |REGRESSION) |
http://bugzilla.opensuse.org/show_bug.cgi?id=1200355 http://bugzilla.opensuse.org/show_bug.cgi?id=1200355#c2
--- Comment #2 from Tejas Guruswamy masterpatricko@gmail.com --- If this is really just an issue with the GeoClue permissions there's nothing redshift can directly do about it. Either users need to add permissions manually (there is no scope for a drop-in file from redshift) or GeoClue maintainers need to add redshift as default-allowed.
But I am curious, because I don't see right now where the GeoClue permissions have changed between 15.3 and 15.4. So how was it working before?
http://bugzilla.opensuse.org/show_bug.cgi?id=1200355 http://bugzilla.opensuse.org/show_bug.cgi?id=1200355#c3
--- Comment #3 from Moritz Duge duge@pre-sense.de --- (In reply to Tejas Guruswamy from comment #2)
If this is really just an issue with the GeoClue permissions there's nothing redshift can directly do about it. Either users need to add permissions manually (there is no scope for a drop-in file from redshift) or GeoClue maintainers need to add redshift as default-allowed.
If there would be a /etc/geoclue/geoclue.conf.d/ Redshift could add it's own permission config. But because there is only a /etc/geoclue/geoclue.conf I guess the GeoClue maintainers must have a look at this ticket.
But I am curious, because I don't see right now where the GeoClue permissions have changed between 15.3 and 15.4. So how was it working before?
I can't answer that. I can only say, that it works on an openSUSE 15.3 system, but doesn't work with 15.4. You can simply test it using a 15.3 and a 15.4 live cd. https://download.opensuse.org/distribution/leap/15.3/live/ https://download.opensuse.org/distribution/leap/15.4/live/
http://bugzilla.opensuse.org/show_bug.cgi?id=1200355 http://bugzilla.opensuse.org/show_bug.cgi?id=1200355#c4
Tejas Guruswamy masterpatricko@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS
--- Comment #4 from Tejas Guruswamy masterpatricko@gmail.com --- Yes, I am doing some investigation to understand the root cause and will push this up to the GeoClue maintainers if needed. In the meantime could you please confirm that on your system that manual permissions added to geoclue.conf fixes the problem?
[redshift] allowed=true system=false users=
http://bugzilla.opensuse.org/show_bug.cgi?id=1200355 http://bugzilla.opensuse.org/show_bug.cgi?id=1200355#c5
--- Comment #5 from Moritz Duge duge@pre-sense.de --- (In reply to Tejas Guruswamy from comment #4)
[...] In the meantime could you please confirm that on your system that manual permissions added to geoclue.conf fixes the problem?
[redshift] allowed=true system=false users=
Actually further investigations showed a quite strange behavior. That setting for the geoclue.conf seems not to help at all. But the geoclue sometimes just works if I start it again after the crash.
I guess it's more efficient if you take your time and reproduce it yourself. It's pretty easy to reproduce it using the live cd. The bug appears on every openSUSE-15.4 system I tried. And I'm neither a RedShift nor a GeoClue developer. So I don't have any special insights. If you unexpectedly can't reproduce it I'll gladly help!
Using the KDE live cd right after booting. Same with and without modified geoclue.conf. Also waiting some time after boot before starting RedShift change the behavior. In any case the first RedShift start always fails. And sometimes the second RedShift start also fails, but then the third works fine. ######################################## linux@localhost:~> uptime 11:23:45 up 0:02, 3 users, load average: 0.91, 0.44, 0.17 linux@localhost:~> redshift Trying location provider `geoclue2'... Using provider `geoclue2'. Using method `randr'. Waiting for initial location to become available... Unable to start GeoClue client: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: 'redshift' disallowed, no agent for UID 1000. Access to the current location was denied by GeoClue! Make sure that location services are enabled and that Redshift is permitted to use location services. See https://github.com/jonls/redshift#faq for more information. Unable to get location from provider. linux@localhost:~> redshift Trying location provider `geoclue2'... Using provider `geoclue2'. Using method `randr'. Waiting for initial location to become available... Location: 53.56 N, 9.96 E ########################################
http://bugzilla.opensuse.org/show_bug.cgi?id=1200355 http://bugzilla.opensuse.org/show_bug.cgi?id=1200355#c6
Tejas Guruswamy masterpatricko@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |DUPLICATE
--- Comment #6 from Tejas Guruswamy masterpatricko@gmail.com --- See comments in #1093592. This is essentially a GeoClue2 bug which has been fixed in 2.6.0.
*** This bug has been marked as a duplicate of bug 1093592 ***