diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-06-14 15:58:36 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-06-14 15:58:36 -0500 |
commit | c0a3ba1cb8c6ebf8b353a821e5fe728ac885e0a1 (patch) | |
tree | ac700b8b4a8b74ef66b0276c372e19db00572cab /src | |
parent | bc63a95ba6cef880f17a77011042a38a4ea22e76 (diff) | |
download | ayatana-indicator-datetime-c0a3ba1cb8c6ebf8b353a821e5fe728ac885e0a1.tar.gz ayatana-indicator-datetime-c0a3ba1cb8c6ebf8b353a821e5fe728ac885e0a1.tar.bz2 ayatana-indicator-datetime-c0a3ba1cb8c6ebf8b353a821e5fe728ac885e0a1.zip |
fix invocation of evolution's appointment editor
Diffstat (limited to 'src')
-rw-r--r-- | src/planner-eds.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/planner-eds.c b/src/planner-eds.c index 6677b32..8fdc50b 100644 --- a/src/planner-eds.c +++ b/src/planner-eds.c @@ -228,15 +228,15 @@ my_activate_time (IndicatorDatetimePlanner * self G_GNUC_UNUSED, { gchar * isodate; gchar * command; - GError * error; + GError * err; - isodate = g_date_time_format (activate_time, "%F"); - command = g_strconcat ("evolution calendar:///?startdate=", isodate, NULL); - error = 0; - if (!g_spawn_command_line_async (command, &error)) + isodate = g_date_time_format (activate_time, "%Y%m%d"); + command = g_strdup_printf ("evolution \"calendar:///?startdate=%s\"", isodate); + err = 0; + if (!g_spawn_command_line_async (command, &err)) { - g_warning ("Unable to start %s: %s", command, error->message); - g_error_free (error); + g_warning ("Unable to start %s: %s", command, err->message); + g_error_free (err); } g_free (command); |