From afc73ec8532569245faa3fe158b0e8339e66cc80 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 25 Mar 2014 16:28:54 -0500 Subject: work around gio wakeup bug --- src/actions-live.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/actions-live.cpp') 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; -- cgit v1.2.3