[gnome-books/wip/hadess/open-in-foliate: 2/2] document: Fix opening in Foliate or Bookworm



commit 3159fa85bc880ee80b77f9a46b03712048f706ca
Author: Bastien Nocera <hadess hadess net>
Date:   Sat Aug 3 17:11:19 2019 +0200

    document: Fix opening in Foliate or Bookworm
    
    Those 2 applications only support local files, not remote ones. All the
    files in our database should now be local files anyway, and
    g_app_info_launch_uris() does the right thing for local paths too.

 src/documents.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/documents.js b/src/documents.js
index 9cec975d..3279a9f9 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -826,7 +826,7 @@ var LocalDocument = new Lang.Class({
 
             let apps = Gio.app_info_get_recommended_for_type (this.mimeType);
             for (let i = 0; i < apps.length; i++) {
-                if (!apps[i].supports_uris ())
+                if (!apps[i].supports_files ())
                     continue;
                 // Never offer to open in an archive handler
                 if (apps[i].get_id() == 'org.gnome.FileRoller.desktop')


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