Score:1

How to get audio when starting a GUI program as another user on Kubuntu 22.10 (PipeWire)?

fr flag

I currently use a command like this to start Firefox as a different user:

# using fake "get-user2-password" command abstraction here for simplicity
xhost "+SI:localuser:user2" &&
get-user2-password |
su - user2 -c "export DISPLAY=$DISPLAY ; /opt/firefox/firefox"

It works well, except I get no sound. I'm on Kubuntu 22.10, which uses PipeWire (it also didn't have sound before when it was PulseAudio).

How can I get sound from another user (mixing both) when I start a program (specially Firefox) on that account?

geekley avatar
fr flag
Related: https://superuser.com/questions/716699/mixing-sound-from-multiple-users-processes-on-linux
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.