summaryrefslogtreecommitdiff
path: root/embed/ephy-embed-shell.c
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2017-11-19 13:53:40 -0600
committerMichael Catanzaro <mcatanzaro@igalia.com>2017-11-19 14:02:55 -0600
commit0cc235b4857beb5f4d667f0b02b58feea1c5b652 (patch)
treecc8491c31507783fbdfceb281cc6832cc646007d /embed/ephy-embed-shell.c
parent9b247b9949162c047789df89a2b22961731350eb (diff)
downloadepiphany-0cc235b4857beb5f4d667f0b02b58feea1c5b652.tar.gz
flatpak: Allow opening downloaded files
Diffstat (limited to 'embed/ephy-embed-shell.c')
-rw-r--r--embed/ephy-embed-shell.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index 443eb7a30..0c1d38a1a 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -32,6 +32,7 @@
#include "ephy-encodings.h"
#include "ephy-file-helpers.h"
#include "ephy-filters-manager.h"
+#include "ephy-flatpak-utils.h"
#include "ephy-history-service.h"
#include "ephy-profile-utils.h"
#include "ephy-settings.h"
@@ -1567,6 +1568,10 @@ ephy_embed_shell_launch_handler (EphyEmbedShell *shell,
g_assert (EPHY_IS_EMBED_SHELL (shell));
g_assert (file || mime_type);
+ if (ephy_is_running_inside_flatpak ()) {
+ return ephy_file_launch_file_via_uri_handler (file);
+ }
+
app = ephy_file_launcher_get_app_info_for_file (file, mime_type);
/* Do not allow recursive calls into the browser, they can lead to