Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#25832 - [Pulseaudio] xinit-script launches start-pulseaudio-x11 even when starting Gnome

Attached to Project: Arch Linux
Opened by Veli-Jussi Raitila (vjraitila) - Tuesday, 30 August 2011, 19:32 GMT
Last edited by Allan McRae (Allan) - Saturday, 28 April 2012, 15:17 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
There is a condition in the pulseaudio xinit-script that should check whether pulseaudio will be started by XDG autostart. At least in my case it does not work. $SESSION variable is empty and therefore the default branch of the case structure is executed.

I've worked around it by using $DESKTOP_SESSION instead and replacing the condition with expected values like this:
---
#!/bin/sh

case "$DESKTOP_SESSION" in
gnome|KDE*|xfce) # PulseAudio is started via XDG Autostart
;;
*) /usr/bin/start-pulseaudio-x11 ;;
esac
---
This works at least for Xfce and Gnome. Do not know about KDE though since I do not use it. There's a similar issue in libcanberra-0.28-1.

Additional info:
* pulseaudio-0.9.23-1
* /etc/X11/xinit/xinitrc.d/pulseaudio


Steps to reproduce:
Start Xfce or Gnome and see that start-pulseaudio-x11 is executed twice.
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 28 April 2012, 15:17 GMT
Reason for closing:  Fixed
Comment by Jan Alexander Steffens (heftig) - Thursday, 29 September 2011, 20:49 GMT
Does this work correctly?

http://sprunge.us/PbVX

Would also need testing from someone using KDE.
Comment by Veli-Jussi Raitila (vjraitila) - Friday, 30 September 2011, 21:37 GMT
Looks fine to me in Gnome, but the correct value for $DESKTOP_SESSION in Xfce is "xfce" - not "xfce4".
Comment by Jan Alexander Steffens (heftig) - Saturday, 01 October 2011, 11:18 GMT
I've been told it was 'xfce4'. Oh well, just gonna match both.

Loading...