[gnome-documents] lokview: Use GVfs URIs to open documents



commit 5629e36fbaf8debcd7557eb25894bda6a63a65a8
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Jan 8 18:33:25 2016 +0100

    lokview: Use GVfs URIs to open documents
    
    As far as I can see, LibreOfficeKit is able to handle GVfs URIs just
    fine. This means that we can support remote filesystems mounted by GVfs
    (like ownCloud).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=753686

 src/lokview.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/lokview.js b/src/lokview.js
index 44ce731..192bf01 100644
--- a/src/lokview.js
+++ b/src/lokview.js
@@ -168,9 +168,8 @@ const LOKView = new Lang.Class({
 
     _onLoadFinished: function(manager, doc, docModel) {
         if (docModel == null && doc != null) {
-            let [ location, ] = GLib.filename_from_uri (doc.uri);
             this._doc = doc;
-            this.view.open_document(location, "{}", null, Lang.bind(this, this.open_document_cb));
+            this.view.open_document(doc.uri, "{}", null, Lang.bind(this, this.open_document_cb));
             this._progressBar.show();
         }
     },


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