aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorUbuntu MATE Developers <code@ubuntu-mate.org>2015-04-02 20:30:52 +0000
committerCI Train Bot <ci-train-bot@canonical.com>2015-04-02 20:30:52 +0000
commite332c6b358df2e47e329b8465c30f184516f1e80 (patch)
treed895ace7b962d22002d55568822167af09a5b7a5 /src
parente7a6c33ca20280653ff9a04bb5341b8d3822caf7 (diff)
parent5838f6d868e6d395917dd104d1fccb6ca739a6a4 (diff)
downloadayatana-indicator-power-e332c6b358df2e47e329b8465c30f184516f1e80.tar.gz
ayatana-indicator-power-e332c6b358df2e47e329b8465c30f184516f1e80.tar.bz2
ayatana-indicator-power-e332c6b358df2e47e329b8465c30f184516f1e80.zip
This merge proposal adds support for MATE Desktop.
Approved by: Ted Gould
Diffstat (limited to 'src')
-rw-r--r--src/service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index 9ac559b..602caba 100644
--- a/src/service.c
+++ b/src/service.c
@@ -769,6 +769,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";