我无法让Redshift从GeoClue2检索地理位置信息。在重新启动之后,并且自重新启动后没有更改任何包或配置,现在的状态是:
然而Redshift却无法开始:
$ 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.NoReply: Message recipient disconnected from message bus without replying.
Unable to get location from provider.用户服务表现出一种不同的行为:
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.似乎有一个黑客攻击可以用来解决类似的问题--在手动启动程序时,上面的错误消息与该页面不同--但我感兴趣的是,是否有一个更永久的修复程序可用,还是正在处理中。
发布于 2018-10-23 03:10:09
这是GeoClue程序中的一个已知问题,但在2.5.0版本中已经是固定了。升级到那个版本应该可以解决您的问题。
https://unix.stackexchange.com/questions/466936
复制相似问题