dimtpap / coppwr

Low level control GUI for the PipeWire multimedia server
https://dimtpap.ovh/coppwr
GNU General Public License v3.0
262 stars 4 forks source link

Stuck at "Connect to PipeWire" #13

Open magdesign opened 4 months ago

magdesign commented 4 months ago

System information

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

dimtpap commented 4 months ago

Does running with --device=shm work?

magdesign commented 4 months ago

--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 🤷

dimtpap commented 4 months ago

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 commented 4 months ago

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

magdesign commented 4 months ago

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