diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2017-02-02 07:58:22 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2017-02-02 07:58:22 +0000 |
commit | 13a37b6b6550495cf976e063bc97799b8cda7a0a (patch) | |
tree | fa47f106ace080ebbf59377171c4eb731e6ca217 /libsylph | |
parent | e8afa250c6319a8471b8801922a735644d452578 (diff) |
added menus to open config/mimetmp folder.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3525 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/utils.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libsylph/utils.c b/libsylph/utils.c index 0faf6b48..1e40d52f 100644 --- a/libsylph/utils.c +++ b/libsylph/utils.c @@ -4211,6 +4211,15 @@ gint execute_open_file(const gchar *file, const gchar *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 return 0; |