~cairo-dock-team/ubuntu/precise/cairo-dock-plug-ins/3.0.0.0rc1

« back to all changes in this revision

Viewing changes to alsaMixer/src/applet-notifications.c

  • Committer: Kees Cook
  • Date: 2011-08-11 23:17:39 UTC
  • mfrom: (20.1.1 cairo-dock-plug-ins)
  • Revision ID: kees@outflux.net-20110811231739-cteedan51tmdg77v
Tags: 2.4.0~0beta2-0ubuntu1
releasing version 2.4.0~0beta2-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        }
43
43
        else
44
44
        {
45
 
                g_spawn_command_line_async ("gnome-volume-control -p applications", &erreur);
 
45
                gchar *cResult = cairo_dock_launch_command_sync ("which gnome-volume-control");
 
46
                if (cResult != NULL && *cResult == '/')
 
47
                        g_spawn_command_line_async ("gnome-volume-control -p applications", &erreur); // gnome 2
 
48
                else
 
49
                {
 
50
                        /*cResult = cairo_dock_launch_command_sync ("which gnome-control-center");
 
51
                        if (cResult != NULL && *cResult == '/')*/
 
52
                        g_spawn_command_line_async ("gnome-control-center sound", &erreur); // Gnome 3
 
53
                }
 
54
                g_free (cResult);
46
55
        }
47
56
        
48
57
        if (erreur != NULL)