Comment 19 for bug 1987979

Revision history for this message
In , Nathan Teodosio (nteodosio) wrote :

For your information, if trying this in a snap, make sure to supply a correct XDG_RUNTIME_DIR as that seems to be modified by snapcraft or snapd.

Namely, in a `snap run --shell {snap-name-with-spd}`, this fails:

```
$ spd-say bye
Failed to connect to Speech Dispatcher:
Error: Can't connect to unix socket /run/user/1000/snap.geheim/speech-dispatcher/speechd.sock: No such file or directory. Autospawn: Autospawn failed. Spawn error 8: Failed to execute child process “/usr/bin/speech-dispatcher” (No such file or directory)
```

but this works:

```
$ XDG_RUNTIME_DIR=/run/user/1000 spd-say bye
```