You are not logged in.

#1 2017-06-26 03:15:54

zwa
Member
Registered: 2005-12-05
Posts: 119

Pulseaudio connection problem

I have a weird problem: I use openbox with no desktop manager. In ~/.xinitrc I start a urxvt terminal among other things. If I run pulseaudio from that terminal and from the openbox menu I open another urxvt terminal and run lets say pavucontrol, it won't connect to pulseaudio. BUT, if I open two terminals from the openbox menu and run pulseaudio in one and pavucontrol in the other, then pavucontol will connect successfully. Why does this happen?


.xinitrc:
...
urxvt &
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session openbox-session

.config/openbox/autostart.sh:
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
pulseaudio --start --log-target=syslog &
...



Thanks!

Offline

#2 2017-06-27 05:27:01

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: Pulseaudio connection problem

There is no need to start pulseaudio manually in arch. It is socket activated. Please read wiki page on pulseaudio.

Offline

#3 2017-06-27 07:37:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,270

Re: Pulseaudio connection problem

exec ck-launch-session dbus-launch --sh-syntax --exit-with-session openbox-session

Get rid of "ck-launch-session dbus-launch --sh-syntax --exit-with-session", you're breaking logind and thus the session activity.

The "..." are hopefully the system provided includes, see the second note on https://wiki.archlinux.org/index.php/Xinit#xinitrc

Online

Board footer

Powered by FluxBB