[frogr] Use gvfs-open instead of xdg-open when GAppInfo could not be used
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Use gvfs-open instead of xdg-open when GAppInfo could not be used
- Date: Tue, 4 Oct 2016 22:58:01 +0000 (UTC)
commit 33e264988d5b1bec3a0d15234986d286e85727c3
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Tue Oct 4 23:01:02 2016 +0100
Use gvfs-open instead of xdg-open when GAppInfo could not be used
This works better since gvfs-open uses g_app_info_launch_default_for_uri()
under the hood, which will hook into the OpenURI portal logic, allowing
frogr to authorize accounts and open external viewers when running inside
of a flatpak sandbox.
src/frogr-util.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/frogr-util.c b/src/frogr-util.c
index 564bfc0..4d98300 100644
--- a/src/frogr-util.c
+++ b/src/frogr-util.c
@@ -167,7 +167,7 @@ _open_uris_with_app_info (GList *uris_list, GAppInfo *app_info)
/* In MacOSX use 'open' instead of 'xdg-open' */
command = g_strdup_printf ("open %s", uris);
#else
- command = g_strdup_printf ("xdg-open %s", uris);
+ command = g_strdup_printf ("gvfs-open %s", uris);
#endif
_spawn_command (command);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]