diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2012-03-16 09:39:03 -0400 |
---|---|---|
committer | Package Import Robot <package-import@ubuntu.com> | 2012-03-16 09:39:03 -0400 |
commit | bdb95273a07a5b8eb262daca28ac2d994582a93a (patch) | |
tree | 144f5f8f61187d35b333426de1667ecff9467a54 /src/sound-service-dbus.c | |
parent | d33e222df72ece524ff7543ed196980715d3e947 (diff) | |
parent | 79dc1a84cb86027b9f031db253a333de4f1ea23f (diff) | |
download | ayatana-indicator-sound-bdb95273a07a5b8eb262daca28ac2d994582a93a.tar.gz ayatana-indicator-sound-bdb95273a07a5b8eb262daca28ac2d994582a93a.tar.bz2 ayatana-indicator-sound-bdb95273a07a5b8eb262daca28ac2d994582a93a.zip |
* debian/patches/sound_nua.patch
- Sound Settings link doesn't work in GNOME Classic (LP: #941704)
Diffstat (limited to 'src/sound-service-dbus.c')
-rw-r--r-- | src/sound-service-dbus.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sound-service-dbus.c b/src/sound-service-dbus.c index 9cfee11..fe041ea 100644 --- a/src/sound-service-dbus.c +++ b/src/sound-service-dbus.c @@ -228,13 +228,20 @@ 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 + 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-nua", &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); g_error_free(error); } + g_free (cmd); } static void |