aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-06-14 15:58:36 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-06-14 15:58:36 -0500
commitc0a3ba1cb8c6ebf8b353a821e5fe728ac885e0a1 (patch)
treeac700b8b4a8b74ef66b0276c372e19db00572cab /src
parentbc63a95ba6cef880f17a77011042a38a4ea22e76 (diff)
downloadayatana-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.c14
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);