View Single Post
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#55
Originally Posted by evk View Post
Anyone now how to get GPS-coordinates through dbus? Or some other simple way that can be used from a shell script?
I had a couple of tries, but could not figure out how to do it.

Apparently the thing to use is "org.freedesktop.Geoclue.Master" but how to exactly do that escapes my understanding. I did some experimenting with qdbus but the format of the dbus commands are too difficult for me to understand...

It's got a org.freedesktop.Geoclue.Master.Create() method, and invoking that will give you a new thingy, something like "/org/freedesktop/Geoclue/Master/client0" for example, where the last number will probably increase based on how many thingies you have create():d...