jwoglom / signal-curses

Curses-backed terminal interface for Signal using signal-cli
GNU General Public License v3.0
73 stars 9 forks source link

Quark Issues #18

Closed heywoodlh closed 4 years ago

heywoodlh commented 4 years ago

Hey so I have been attempting to throw signal-curses in a Docker container. The dockerfile is here:

https://raw.githubusercontent.com/heywoodlh/dockerfiles/master/signal-curses/Dockerfile

(It's a little messy at the moment since it's still not working but I plan on cleaning up the Dockerfile better once I have it working)

I am able to link to Signal and get to where I get to the Groups/User dialog but then I get some weird errors, not sure if they originate from signal-curses or signal-cli so I thought I'd post here first.

Here is the error:

return Gio.bus_get_sync(type, None).pydbus
File "/ugi.repository.GLib.Error: g-io-error-quark: Could not connect: No such file or directory (1)

I am unable to select any users or groups to start chatting with them.

If you'd like to replicate the Docker command I'm using, this is it:

docker run -it --name signal-curses --env DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS" -v signal_curses:/home/signal-curses/.local/share/signal-cli -v /etc/machine-id:/etc/machine-id --rm heywoodlh/signal-curses -u +XXXXXXXXXXX

Any help would be appreciated. :) Getting signal-curses Dockerized would make this so much simpler to use in the future.

heywoodlh commented 4 years ago

Turns out my container will only work on Linux because of MacOS limitations. Figured out it was an issue with the lack of DBUS on MacOS so forwarding the DBUS session didn't work.

For the record, this is the full Docker command I run to get my container to work on Linux:

docker run -it --name signal-curses --env DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS" -v signal_curses:/home/signal-curses/.local/share/signal-cli -v /etc/machine-id:/etc/machine-id -v /etc/hostname:/etc/hostname -v /run/user/1000/bus:/run/user/1000/bus --security-opt apparmor=unconfined --rm heywoodlh/signal-curses -u +1XXXXXXXXXX