diff options
| author | Ken VanDine <ken.vandine@canonical.com> | 2012-10-30 21:34:14 +0000 |
|---|---|---|
| committer | Package Import Robot <package-import@ubuntu.com> | 2012-10-30 21:34:14 +0000 |
| commit | ffc53c308d65ed0faa484c6db9e7bb9dc24ce958 (patch) | |
| tree | ee1aee3692df52df93c54327fd69e21fb3157a9a /src | |
| parent | 47b5650223c23e8a912b065fa94951e1602c85f3 (diff) | |
| download | ayatana-indicator-sound-ffc53c308d65ed0faa484c6db9e7bb9dc24ce958.tar.gz ayatana-indicator-sound-ffc53c308d65ed0faa484c6db9e7bb9dc24ce958.tar.bz2 ayatana-indicator-sound-ffc53c308d65ed0faa484c6db9e7bb9dc24ce958.zip | |
[ Allan LeSage ]
* debian/control: update to debhelper 9.0
* debian/rules: change to debhelper 9.0
[ Ken VanDine ]
* debian/control
- build depend on dh-translations
Diffstat (limited to 'src')
| -rw-r--r-- | src/sound-service-dbus.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/sound-service-dbus.c b/src/sound-service-dbus.c index 5e004cb..815333f 100644 --- a/src/sound-service-dbus.c +++ b/src/sound-service-dbus.c @@ -227,8 +227,18 @@ 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 if (!g_strcmp0 (g_getenv ("DESKTOP_SESSION"), "ubuntustudio")) + 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); |
