[epiphany/mcatanzaro/#1352] Fix opening custom CSS and JS file under flatpak




commit 07967a26f6fcfe3ff02759b61f08ae6c95458d2c
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Sep 26 09:19:04 2020 -0500

    Fix opening custom CSS and JS file under flatpak
    
    The OpenURI portal understandably expects to receive a URI.
    
    Fixes #1352

 src/preferences/prefs-appearance-page.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/preferences/prefs-appearance-page.c b/src/preferences/prefs-appearance-page.c
index 5dc47c171..9af61f0bb 100644
--- a/src/preferences/prefs-appearance-page.c
+++ b/src/preferences/prefs-appearance-page.c
@@ -161,7 +161,7 @@ css_file_created_cb (GObject      *source,
     g_warning ("Failed to create %s: %s", g_file_get_path (file), error->message);
   else {
     if (ephy_is_running_inside_flatpak ())
-      ephy_open_uri_via_flatpak_portal (g_file_get_path (file));
+      ephy_open_uri_via_flatpak_portal (g_file_get_uri (file));
     else
       ephy_file_launch_handler (file, gtk_get_current_event_time ());
   }
@@ -200,7 +200,7 @@ js_file_created_cb (GObject      *source,
     g_warning ("Failed to create %s: %s", g_file_get_path (file), error->message);
   else {
     if (ephy_is_running_inside_flatpak ())
-      ephy_open_uri_via_flatpak_portal (g_file_get_path (file));
+      ephy_open_uri_via_flatpak_portal (g_file_get_uri (file));
     else
       ephy_file_launch_handler (file, gtk_get_current_event_time ());
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]