aboutsummaryrefslogtreecommitdiff
path: root/src/actions-live.cpp
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-07-11 00:11:05 +0200
committerRobert Tari <robert@tari.in>2020-07-17 18:02:32 +0200
commitb917e4ce17bc30772792a475af2eb0c64ae9f47b (patch)
treebfec00a17c4cd117576b6cbe8160f07c1d1a764f /src/actions-live.cpp
parent6eac66d1ca86cbf85204b93f36b3ebe7082498b5 (diff)
downloadayatana-indicator-datetime-b917e4ce17bc30772792a475af2eb0c64ae9f47b.tar.gz
ayatana-indicator-datetime-b917e4ce17bc30772792a475af2eb0c64ae9f47b.tar.bz2
ayatana-indicator-datetime-b917e4ce17bc30772792a475af2eb0c64ae9f47b.zip
-Made GCC 10.1.0 friendly
-Fixed to work with ECal 2.0 -Added libaccounts-glib dependency -Added mate-time-admin handler
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");
+ }
}
}