maps: accept socket path as command line arg
This commit is contained in:
parent
bf7eac5fac
commit
97440603f3
@ -63,10 +63,11 @@ label.readout {
|
|||||||
(: :add (readout "21:05:00"))
|
(: :add (readout "21:05:00"))
|
||||||
(: :add (readout "00:00"))
|
(: :add (readout "00:00"))
|
||||||
(: :add (readout "25 km/h"))))
|
(: :add (readout "25 km/h"))))
|
||||||
|
(local socket-path (or (. arg 1) "/var/run/gnss-share.sock"))
|
||||||
|
|
||||||
(local gnss-socket
|
(local gnss-socket
|
||||||
(let [addr (Gio.UnixSocketAddress {
|
(let [addr (Gio.UnixSocketAddress {
|
||||||
:path "/var/run/gnss-share.sock"
|
:path socket-path
|
||||||
})]
|
})]
|
||||||
(: (Gio.SocketClient) :connect addr nil)))
|
(: (Gio.SocketClient) :connect addr nil)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user