aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-03-28 16:10:55 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-03-28 16:10:55 +0000
commit2a62b1c03ef3f80ea7817f342c7eace0c1993d29 (patch)
tree76b3a6811f86dec74de73d759cd0de9273ef4f2f
parente5c36e2aa4cbe30694776549d5f7b142a9e34041 (diff)
parentafc73ec8532569245faa3fe158b0e8339e66cc80 (diff)
downloadayatana-indicator-datetime-2a62b1c03ef3f80ea7817f342c7eace0c1993d29.tar.gz
ayatana-indicator-datetime-2a62b1c03ef3f80ea7817f342c7eace0c1993d29.tar.bz2
ayatana-indicator-datetime-2a62b1c03ef3f80ea7817f342c7eace0c1993d29.zip
Short-term workaround for the GIO GAppInfo wakeup bug discussed in bug 1296233 Fixes: 1296233
-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;