aboutsummaryrefslogtreecommitdiff
path: root/src/sound-service-dbus.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2012-03-30 14:07:44 -0400
committerKen VanDine <ken.vandine@canonical.com>2012-03-30 14:07:44 -0400
commitd738d091793595d86f1a2353b06bf3584b0afbf9 (patch)
tree41006b12bcb17a20ba7621279557303b0f88ca9e /src/sound-service-dbus.c
parenta198e844b900a514a4735cb17dd21ccf6a6a85ee (diff)
downloadayatana-indicator-sound-d738d091793595d86f1a2353b06bf3584b0afbf9.tar.gz
ayatana-indicator-sound-d738d091793595d86f1a2353b06bf3584b0afbf9.tar.bz2
ayatana-indicator-sound-d738d091793595d86f1a2353b06bf3584b0afbf9.zip
releasing version 0.8.4.1-0ubuntu4
Diffstat (limited to 'src/sound-service-dbus.c')
-rw-r--r--src/sound-service-dbus.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/sound-service-dbus.c b/src/sound-service-dbus.c
index 7cad2bc..cac7570 100644
--- a/src/sound-service-dbus.c
+++ b/src/sound-service-dbus.c
@@ -227,8 +227,16 @@ show_sound_settings_dialog (DbusmenuMenuitem *mi,
gpointer user_data)
{
GError * error = NULL;
+ gchar* cmd;
+ if (!g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Unity"))
+ cmd = "gnome-control-center sound-nua";
+ else if (!g_strcmp0 (g_getenv ("DESKTOP_SESSION"), "xubuntu"))
+ cmd = "pavucontrol";
+ else
+ cmd = "gnome-control-center sound";
+
if (!g_spawn_command_line_async("gnome-volume-control --page=applications", &error) &&
- !g_spawn_command_line_async("gnome-control-center sound", &error) &&
+ !g_spawn_command_line_async(cmd, &error) &&
!g_spawn_command_line_async("xfce4-mixer", &error))
{
g_warning("Unable to show dialog: %s", error->message);