Launching PAVUControl works from Xubuntu, but not from Xfce

Bug #1359249 reported by Roman
56
This bug affects 9 people
Affects Status Importance Assigned to Milestone
indicator-sound (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

In Xubuntu 14.04 when clicking the sound indicator and choosing "Sound Settings" Pavucontrol is launched, but it does not get launched in the same scenario when the session "Xfce" is launched instead, with the same settings. In fact I installed the xfce4 package on top of Xubuntu's and launched it. Both xsession files list the same thing to start it, so is indicator only choosing to work on whitelisted sessions?

Revision history for this message
Simon Steinbeiß (ochosi) wrote :

Yup, that is the case. So far, only Xubuntu and Ubuntu Studio are taken into account.
http://bazaar.launchpad.net/~indicator-applet-developers/indicator-sound/trunk.14.04/view/head:/src/service.vala#L209

I guess the reason the Xfce session isn't there is because nobody complained about it before.

Revision history for this message
Roman (thezub) wrote :

Reading this code, shouldn't gnome-control-center sound launch in the case where Xfce is the session and it is installed? Because I tried that, and it launches gnome-control-center with only about two or three icons visible, workaround being to launch it with gksu. Which I've filed under bug #1359248

Revision history for this message
Roman (thezub) wrote :

And as an aside, wouldn't a setting, even something in dconf, be a better fit anyway?

Revision history for this message
Roman (thezub) wrote :

Wanted to update, this bug is still in effect, the other bug I have figured out how to solve, will update that thread.

Revision history for this message
Vlad Orlov (monsta) wrote :

That's also the reason it had to be patched in Linux Mint Xfce edition.

Revision history for this message
Vlad Orlov (monsta) wrote :

Roman, what would these commands say in this "other" Xfce session?

echo $XDG_CURRENT_DESKTOP
echo $DESKTOP_SESSION

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-sound (Ubuntu):
status: New → Confirmed
Revision history for this message
Vlad Orlov (monsta) wrote :

Ok, I've tested it myself in the same "other" Xfce session.

monsta@xubuntu:~$ echo $XDG_CURRENT_DESKTOP
XFCE
monsta@xubuntu:~$ echo $DESKTOP_SESSION
xfce

So it's clear that the condition in indicator-application source code should be changed.

Revision history for this message
Vlad Orlov (monsta) wrote :

Sorry, *indicator-sound* of course, damn those unchangeable comments :)

Revision history for this message
Roman (thezub) wrote :

roman@Roman-PC:~$ echo $XDG_CURRENT_DESKTOP
XFCE
roman@Roman-PC:~$ echo $DESKTOP_SESSION
xfce

The thing is, I would rather have the gnome audio manager over PAVUControl (I consider it more user-friendly) and certainly o.ver the Unity one, especially since Unity is planning on switching to Qt-based one anyway.

Revision history for this message
Vlad Orlov (monsta) wrote :

I doubt the maintainers would accept gnome-control-center in Xubuntu just for that... We can suggest making the command configurable though.

Revision history for this message
McArthor Lee (macarthorzhuce) wrote :

same as #1443229.

I investigate the source code of indicator-sound, and find that in src/service.vala:

var env = Environment.get_variable ("DESKTOP_SESSION");
string cmd;
if (env == "xubuntu" || env == "ubuntustudio")
 cmd = "pavucontrol";
else

I think you would support more desktop environment such as XFCE by adding " || env == "xfce""

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.