diff options
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; |