You are not logged in.

#1 2021-07-10 13:56:29

AliReza
Member
Registered: 2019-12-10
Posts: 9

Sound problem while using su

Hi guys,

I have two users, and sometimes I need to open GUI applications of user2 while using user1!

First I run:

xhost +

and then:

su -c my-app user2

but the only problem is that I don't have sounds! And it's not a problem caused by the app, I tested it on several apps (telegram, vlc, etc)

Telegram doesn't play voice messages and vlc says:

The audio device "default" could not be used:
Host is down.

Offline

#2 2021-07-10 17:33:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,337

Re: Sound problem while using su

This is expected under normal circumstances. What do you actually want to do, why do you want multiple distinct users using GUI tools within the same session?

You can workaround this by allowing anonymous network access if you're using pulse: https://wiki.archlinux.org/title/PulseA … _same_time other methods might be more cumbersome.

Last edited by V1del (2021-07-10 17:36:09)

Offline

#3 2021-07-23 12:49:58

AliReza
Member
Registered: 2019-12-10
Posts: 9

Re: Sound problem while using su

V1del wrote:

What do you actually want to do, why do you want multiple distinct users using GUI tools within the same session?

I need to use telegram from the other user by my main user! (And I don't want to add both accounts to my main user, because I don't want the other account to be exposed to someone who knows the passcode to my main account).

V1del wrote:

You can workaround this by allowing anonymous network access if you're using pulse: https://wiki.archlinux.org/title/PulseA … _same_time other methods might be more cumbersome.

I don't have "~/.config/pulse/default.pa", maybe because I'm using pipewire? I don't know anything about pipewire, a system update forced me to install it!

Last edited by AliReza (2021-07-23 12:55:23)

Offline

Board footer

Powered by FluxBB