On 11/11/18 2:36 PM, ToddAndMargo via users wrote:
> On 11/10/18 10:00 PM, Samuel Sieb wrote:
>> On 11/10/18 7:32 PM, ToddAndMargo via users wrote:
>>>      systemctl start geoclue
>>>
>>> Anything special I have to do to it to allow standard
>>> users to start it?
>>
>> You don't.
>>
>>> $ ls -al /usr/lib/systemd/system/geoclue.service
>>> -rw-r--r--. 1 root root 468 Oct 14 11:59 
>>> /usr/lib/systemd/system/geoclue.service
>>
>> If you look in that file, you'll see that it's a dbus activated service.   
>> It's not
>> intended for manual startup.  It will run when requested.
>
> Indeed that is the idea.
>
> Redshift does this and bombs with a message
> that geoclue does not have permission.
>
>
> $ ls -al /usr/libexec/geoclue
> -rwxr-xr-x. 1 root root 313368 Oct 14 11:59 /usr/libexec/geoclue
>
> $ /usr/libexec/geoclue
>
> (geoclue:23024): Geoclue-CRITICAL **: 22:34:01.971: Failed to acquire name
> 'org.freedesktop.GeoClue2' on system bus or lost it.
>
>

That is not started by the user directly....

Using 2 terminal sessions.....

[egreshko@meimei ~]$ ps -eaf | grep geoclue
egreshko  1691     1  0 Nov10 ?        00:00:00 
/usr/libexec/geoclue-2.0/demos/agent
egreshko  5684  2503  0 17:25 pts/3    00:00:00 grep --color=auto geoclue

then I start redshift in another terminal....and after a bit I get a popup 
asking
permission for redshift to know my location

[egreshko@meimei ~]$ redshift
Trying location provider `geoclue2'...
Using provider `geoclue2'.
Using method `randr'.
Waiting for initial location to become available...
Location: 25.05 N, 121.53 E

and

[egreshko@meimei ~]$ ps -eaf | grep geoclue
egreshko  1691     1  0 Nov10 ?        00:00:00 
/usr/libexec/geoclue-2.0/demos/agent
geoclue   5713     1  0 17:26 ?        00:00:00 /usr/libexec/geoclue
egreshko  5735  2503  0 17:27 pts/3    00:00:00 grep --color=auto geoclu






-- 
Fedora Users - The place to go to beat OT dead horses :-) :-)
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to