diff options
author | Ubuntu MATE Developers <code@ubuntu-mate.org> | 2015-02-25 14:49:06 +0000 |
---|---|---|
committer | Ubuntu MATE Developers <code@ubuntu-mate.org> | 2015-02-25 14:49:06 +0000 |
commit | 5838f6d868e6d395917dd104d1fccb6ca739a6a4 (patch) | |
tree | 5d73bf3e9b7ffce8de49afe16d33b8204ee685d7 | |
parent | ae9a41c6876dc103d369a3565f5a92f76f8f23d8 (diff) | |
download | ayatana-indicator-power-5838f6d868e6d395917dd104d1fccb6ca739a6a4.tar.gz ayatana-indicator-power-5838f6d868e6d395917dd104d1fccb6ca739a6a4.tar.bz2 ayatana-indicator-power-5838f6d868e6d395917dd104d1fccb6ca739a6a4.zip |
Added support for MATE.
-rw-r--r-- | debian/control | 2 | ||||
-rw-r--r-- | src/service.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/debian/control b/debian/control index ef641b4..20869e3 100644 --- a/debian/control +++ b/debian/control @@ -30,7 +30,7 @@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, upower, -Recommends: unity-control-center | gnome-control-center (>= 3.1) | ubuntu-system-settings | switchboard-plug-power | xfce4-power-manager, +Recommends: unity-control-center | gnome-control-center (>= 3.1) | ubuntu-system-settings | switchboard-plug-power | xfce4-power-manager | mate-power-manager, indicator-applet (>= 0.2) | indicator-renderer, Suggests: powerd, unity-system-compositor (>= 0.0.4), diff --git a/src/service.c b/src/service.c index fc07619..0a230bd 100644 --- a/src/service.c +++ b/src/service.c @@ -762,6 +762,10 @@ on_settings_activated (GSimpleAction * a G_GNUC_UNUSED, { control_center_cmd = "xfce4-power-manager-settings"; } + else if (!g_strcmp0 (g_getenv ("DESKTOP_SESSION"), "mate")) + { + control_center_cmd = "mate-power-preferences"; + } else if (!g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Pantheon")) { control_center_cmd = "switchboard --open-plug system-pantheon-power"; |