From 13a37b6b6550495cf976e063bc97799b8cda7a0a Mon Sep 17 00:00:00 2001 From: hiro Date: Thu, 2 Feb 2017 07:58:22 +0000 Subject: added menus to open config/mimetmp folder. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3525 ee746299-78ed-0310-b773-934348b2243d --- libsylph/utils.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libsylph') diff --git a/libsylph/utils.c b/libsylph/utils.c index 0faf6b48..1e40d52f 100644 --- a/libsylph/utils.c +++ b/libsylph/utils.c @@ -4209,6 +4209,15 @@ gint execute_open_file(const gchar *file, const gchar *content_type) log_print("opening %s - %s\n", file, content_type ? content_type : ""); + argv[1] = file; + execute_async(argv); +#else + const gchar *argv[3] = {"xdg-open", NULL, NULL}; + + g_return_val_if_fail(file != NULL, -1); + + log_print("opening %s - %s\n", file, content_type ? content_type : ""); + argv[1] = file; execute_async(argv); #endif -- cgit v1.2.3