Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to make this work with non-default socket location #29

Open
maygic23 opened this issue Oct 2, 2020 · 1 comment
Open

how to make this work with non-default socket location #29

maygic23 opened this issue Oct 2, 2020 · 1 comment

Comments

@maygic23
Copy link

maygic23 commented Oct 2, 2020

I'm running signald as container and path to the socket is not the default one. I've tried to change it in the default_options{ socket}, but no luck. Maybe I'm doing something wrong, please see below:

x@arch ~ % tail -n 5 ~/.weechat/logs/signal.log
ERROR:weechat_script:Failed to connect to signald socket
Traceback (most recent call last):
	File "/home/x/.weechat/python/signal.py", line 341, in init_socket
		signald_socket.connect(options["socket"])
FileNotFoundError: [Errno 2] Nie ma takiego pliku ani katalogu
x@arch ~ % grep docker/run ~/.weechat/python/signal.py
"socket": "/home/x/docker/run/signald.sock",
x@arch ~ % ls -la /home/x/docker/run/signald.sock
srw-rw-rw- 1 100999 100999 0 10-02 10:26 /home/x/docker/run/signald.sock
x@arch ~ % nc -U /home/x/docker/run/signald.sock
{"type":"version","data":{"name":"signald","version":"unversioned","branch":"","commit":""}}
#it works with netcat

Thank you

@tych0
Copy link
Collaborator

tych0 commented Oct 2, 2020

Set either python.signal.socket in plugins.conf or change it in the source code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants