Skip to content

Trailing slash in env var XDG_RUNTIME_DIR causing application failures. #13837

@EphDoering

Description

@EphDoering

Windows Version

Microsoft Windows [Version 10.0.26100.7171]

WSL Version

2.5.7.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.6.87.1-1

Distro Version

Ubuntu 24.04

Other Software

systemd
python3-speechd

Repro Steps

run:
printenv XDG_RUNTIME_DIR

Expected Behavior

/run/user/1000

Actual Behavior

/run/user/1000/

Diagnostic Logs

actual error:

speechd.client.SSIPCommunicationError: Can't open socket using method unix_socket
Original error: [Errno 2] No such file or directory
Additional error: Server refused to autospawn, stating this reason: b'Autospawn failed: Mismatch in socket names. The server is configured to provide a socket interface in /run/user/1000//speech-dispatcher/speechd.sock, but the client requests a different path: /run/user/1000/speech-dispatcher/speechd.sock. This is most probably due to the client application configuration or the value of the SPEECHD_ADDRESS environment variable.\n' with args {'communication_method': 'unix_socket', 'socket_path': '/speech-dispatcher/speechd.sock', 'host': '127.0.0.1', 'port': 6560}

speech-dispatcher.socket

[Unit]
Description=Speech Dispatcher Socket

[Socket]
ListenStream=%t/speech-dispatcher/speechd.sock

[Install]
WantedBy=sockets.target

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions