coppwr icon indicating copy to clipboard operation
coppwr copied to clipboard

Stuck at "Connect to PipeWire"

Open magdesign opened this issue 1 year ago • 5 comments

System information

  • coppwr version (See in Help → About):1.6.0
  • coppwr installation method: Flathub
  • PipeWire version: 1.0.5
  • OS: postmarketOS/alpine
  • Desktop environment/Window manager: sway

Describe the bug After launching i get to the "Connect to Pipewire" screen and dont get further from there:

Failed to connect to remote: Connecting
to Pipewire failed: Creation failed

Not sure if I am missing something or if it does not support the weird pipewire setup on mobile phones.... 🤷 (qpwgraph running from terminal starts and shows me nodes...)

20240507_190354

magdesign avatar May 07 '24 16:05 magdesign

Does running with --device=shm work?

dimtpap avatar May 08 '24 06:05 dimtpap

--device=shm this did not help and resulted in the same error.

i took a look into the flatpak with --command=sh followed with env.

there i see: ALSA_CONFIG_PATH=/usr/share/alsa/alsa-flatpak.conf

which does not exist on my system... but i have no idea 🤷

magdesign avatar May 08 '24 12:05 magdesign

You ran flatpak run --device=shm io.github.dimtpap.coppwr right? (--device=shm goes before the ID)

The problem is that the PipeWire socket is in the /dev directory, which Flatpak blocks from applications.

You can either give more permissions to the app for it to be able to connect to the socket or change PipeWire's socket location by setting a per-user environment variable: https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Config-PipeWire#socket-directories

Most systems have XDG_RUNTIME_DIR set to /run/user/(user id)

dimtpap avatar May 08 '24 13:05 dimtpap

Relevant Alpine Linux documentation: https://wiki.alpinelinux.org/wiki/Wayland#XDG_RUNTIME_DIR

dimtpap avatar May 08 '24 13:05 dimtpap

You ran flatpak run --device=shm io.github.dimtpap.coppwr right? (--device=shm goes before the ID)

yes i did!

thanks for the Alpine link. Setting the XDG_RUNTIME_DIR in ~/.profile did not help... maybe i need to set it somwhere else (in the DE)... however, i'll post here when i got the right commands/settings

magdesign avatar May 08 '24 16:05 magdesign