2
committer: Matthieu Baerts <matttbe@gmail.com>
3
branch nick: cairo-dock-plug-ins
4
timestamp: Tue 2014-02-25 09:51:08 +0100
5
message: AlsaMixer: added the support of cinnamon-settings
6
And first check if gnome-control-center (GNOME 3) is available
8
=== modified file 'alsaMixer/src/applet-notifications.c'
9
Index: cairo-dock-plug-ins/alsaMixer/src/applet-notifications.c
10
===================================================================
11
--- cairo-dock-plug-ins.orig/alsaMixer/src/applet-notifications.c 2014-04-06 22:33:37.271527122 +0200
12
+++ cairo-dock-plug-ins/alsaMixer/src/applet-notifications.c 2014-04-06 22:33:37.267527122 +0200
14
static void _check_mixer_cmd (void)
16
// check for Gnome2 before Gnome3, since during the transition, both were present, and "gnome-control-center sound" didn't work (and it was anyway just a shortcut to gnome-volume-control).
17
- gchar *cResult = cairo_dock_launch_command_sync ("which gnome-volume-control"); // Gnome2
18
+ gchar *cResult = cairo_dock_launch_command_sync ("which gnome-control-center"); // Gnome3
19
if (cResult != NULL && *cResult == '/')
20
- s_cMixerCmd = "gnome-volume-control -p applications";
21
+ s_cMixerCmd = "gnome-control-center sound";
25
- cResult = cairo_dock_launch_command_sync ("which gnome-control-center"); // Gnome3
26
- if (cResult != NULL && *cResult == '/') /// TODO: other DE...
27
- s_cMixerCmd = "gnome-control-center sound";
28
+ cResult = cairo_dock_launch_command_sync ("which gnome-volume-control"); // Gnome2
29
+ if (cResult != NULL && *cResult == '/')
30
+ s_cMixerCmd = "gnome-volume-control -p applications";
34
+ cResult = cairo_dock_launch_command_sync ("which cinnamon-settings"); // cinnamon (Mint >= 13)
35
+ if (cResult != NULL && *cResult == '/')
36
+ s_cMixerCmd = "cinnamon-settings sound";
38
} /// TODO: handle other DE ...