From b917e4ce17bc30772792a475af2eb0c64ae9f47b Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Sat, 11 Jul 2020 00:11:05 +0200 Subject: -Made GCC 10.1.0 friendly -Fixed to work with ECal 2.0 -Added libaccounts-glib dependency -Added mate-time-admin handler --- src/actions-live.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/actions-live.cpp') 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"); + } } } -- cgit v1.2.3