aboutsummaryrefslogtreecommitdiff
path: root/src/actions-live.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions-live.cpp')
-rw-r--r--src/actions-live.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/actions-live.cpp b/src/actions-live.cpp
index e2fbf94..b6d9e8c 100644
--- a/src/actions-live.cpp
+++ b/src/actions-live.cpp
@@ -72,13 +72,19 @@ void LiveActions::desktop_open_settings_app()
dispatch_url("settings:///system/time-date");
}
else
- if ((g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Unity") == 0))
{
- execute_command("unity-control-center datetime");
- }
- else
- {
- execute_command("gnome-control-center datetime");
+ if ((g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "Unity") == 0))
+ {
+ execute_command("unity-control-center datetime");
+ }
+ else if ((g_strcmp0 (g_getenv ("XDG_CURRENT_DESKTOP"), "MATE") == 0))
+ {
+ execute_command("mate-time-admin");
+ }
+ else
+ {
+ execute_command("gnome-control-center datetime");
+ }
}
}