diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2015-08-27 15:18:40 +0100 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2015-08-27 15:18:40 +0100 |
commit | b8a77a03be9574a59d397b3ffa37cd3fa17a1aa9 (patch) | |
tree | 73b03def6bf50844a9fa8801991466cdbae900e8 /src | |
parent | ff85d7e0e21439d5f30f4993671dc58ecd760184 (diff) | |
download | ayatana-indicator-power-b8a77a03be9574a59d397b3ffa37cd3fa17a1aa9.tar.gz ayatana-indicator-power-b8a77a03be9574a59d397b3ffa37cd3fa17a1aa9.tar.bz2 ayatana-indicator-power-b8a77a03be9574a59d397b3ffa37cd3fa17a1aa9.zip |
under unity8 start system-settings instead unity-control-center
Diffstat (limited to 'src')
-rw-r--r-- | src/service.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index f0b3ef9..cd0f24e 100644 --- a/src/service.c +++ b/src/service.c @@ -783,7 +783,12 @@ on_settings_activated (GSimpleAction * a G_GNUC_UNUSED, if (control_center_cmd == NULL) { - if (!g_strcmp0 (g_getenv ("DESKTOP_SESSION"), "xubuntu")) + if (g_getenv ("MIR_SOCKET") != NULL) + { + url_dispatch_send("settings:///system/battery", NULL, NULL); + return; + } + else if (!g_strcmp0 (g_getenv ("DESKTOP_SESSION"), "xubuntu")) { control_center_cmd = "xfce4-power-manager-settings"; } |