[Marble-bugs] [marble] [Bug 350474] would like to have command line option to make geo-uri also set a bookmark

Niels Elgaard elgaard at agol.dk
Sat Jul 25 19:00:55 UTC 2015


https://bugs.kde.org/show_bug.cgi?id=350474

Niels Elgaard <elgaard at agol.dk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WAITINGFORINFO              |---
             Status|NEEDSINFO                   |UNCONFIRMED

--- Comment #3 from Niels Elgaard <elgaard at agol.dk> ---
Yes, maybe it should be done as a separate tool.
I just want to be able to click on geo link, have it open in marble, with a
marker, so I can see precisely where the POI is.

I looked into using qdbus:

==
#!/bin/bash
geo=${1#geo:}
lon=${geo%,*}
lat=${geo#*,}
marble_pid="$(pidof marble)"
if [ ${marble_pid}x == x ]; then
    marble&
    marble_pid=$!
fi
qdbus org.kde.marble-${marble_pid} /MarbleWidget
org.kde.MarbleWidget.setShowPlaces true
alias MCALL='qdbus org.kde.marble-${marble_pid} /MarbleWidget'
qdbus org.kde.marble-${marble_pid} /MarbleWidget org.kde.MarbleWidget.centerOn
"$lat" "$lon"
qdbus org.kde.marble-${marble_pid} /MarbleWidget
org.kde.MarbleWidget.setShowCrosshairs true
# would like to do something like:
qdbus org.kde.marble-${marble_pid} /MarbleWidget addPlaceMarkData ...
# but not accessible from qdbus
==

This would have the advantage that multiple POI's could be opened, e.g., to
show all restaurants in ca city.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Marble-bugs mailing list