blob: 0c44aaf7944e5eea0912a79b5863be7530c3b1c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
--- src/gui/gcal-window.c
+++ src/gui/gcal-window.c
@@ -394,8 +394,22 @@
gpointer user_data)
{
GApplication *application = g_application_get_default ();
-
- gcal_utils_launch_online_accounts_panel (g_application_get_dbus_connection (application), NULL, NULL);
+ gchar *desktop_environment;
+
+ desktop_environment = getenv ("XDG_CURRENT_DESKTOP");
+ if (desktop_environment)
+ {
+ if (g_strcmp0 (desktop_environment, "X-Cinnamon") == 0 || g_strcmp0 (desktop_environment, "Cinnamon") == 0)
+ {
++ g_spawn_command_line_async ("cinnamon-settings online-accounts", NULL);
++ return;
+ }
+ else if (g_strcmp0 (desktop_environment, "GNOME") == 0)
+ {
+ gcal_utils_launch_online_accounts_panel (g_application_get_dbus_connection (application), NULL, NULL);
+ }
+ }
+
}
static void
|