diff options
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/series | 2 | ||||
-rw-r--r-- | debian/patches/sound_nua.patch | 26 |
2 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..ff4afad --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +sound_nua.patch + diff --git a/debian/patches/sound_nua.patch b/debian/patches/sound_nua.patch new file mode 100644 index 0000000..97ba41b --- /dev/null +++ b/debian/patches/sound_nua.patch @@ -0,0 +1,26 @@ +=== modified file 'src/sound-service-dbus.c' +--- old/src/sound-service-dbus.c 2012-03-02 16:34:50 +0000 ++++ new/src/sound-service-dbus.c 2012-03-16 17:24:56 +0000 +@@ -228,13 +228,20 @@ + 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", &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 + |