aboutsummaryrefslogtreecommitdiff
path: root/src/actions-live.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-03-25 16:28:54 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-03-25 16:28:54 -0500
commitafc73ec8532569245faa3fe158b0e8339e66cc80 (patch)
tree76b3a6811f86dec74de73d759cd0de9273ef4f2f /src/actions-live.cpp
parente5c36e2aa4cbe30694776549d5f7b142a9e34041 (diff)
downloadayatana-indicator-datetime-afc73ec8532569245faa3fe158b0e8339e66cc80.tar.gz
ayatana-indicator-datetime-afc73ec8532569245faa3fe158b0e8339e66cc80.tar.bz2
ayatana-indicator-datetime-afc73ec8532569245faa3fe158b0e8339e66cc80.zip
work around gio wakeup bug
Diffstat (limited to 'src/actions-live.cpp')
-rw-r--r--src/actions-live.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/actions-live.cpp b/src/actions-live.cpp
index 068abe7..1f4fc8c 100644
--- a/src/actions-live.cpp
+++ b/src/actions-live.cpp
@@ -84,6 +84,7 @@ bool LiveActions::desktop_has_calendar_app() const
{
inited = true;
+#if 0
auto all = g_app_info_get_all_for_type ("text/calendar");
for(auto l=all; !have_calendar && l!=nullptr; l=l->next)
{
@@ -94,6 +95,13 @@ bool LiveActions::desktop_has_calendar_app() const
}
g_list_free_full(all, (GDestroyNotify)g_object_unref);
+#else
+ /* Work around http://pad.lv/1296233 for Trusty...
+ let's revert this when the GIO bug is fixed. */
+ auto executable = g_find_program_in_path("evolution");
+ have_calendar = executable != nullptr;
+ g_free(executable);
+#endif
}
return have_calendar;