Fix Unable to init server: Could not connect: Connection refused
For others who hit this.
I was trying to run this example app ( coming from https://developer.puri.sm/Librem5/Apps/Examples/General/Simple_Weather/ ), but failed to RUN it or see the dialog.
Error was:
Application started at 13:36:49
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
After some fiddling it appeared to me that in the finish-args
in com.example.simple_weather.json
only --socket=wayland
is available. While my Desktop is Debian Buster here and I was running X (instead of Wayland).
So just add "--socket=x11",
to the finish-args
and it works!
Maybe an idea to just add this to the json?