[gnome-documents] presentation: Fix call to GnomeDesktop.RRScreen



commit 96f6a217af428fd9c1cfbcd4d7d9ba82f3389e8b
Author: Christopher Davis <brainblasted disroot org>
Date:   Fri Mar 1 19:57:49 2019 -0500

    presentation: Fix call to GnomeDesktop.RRScreen
    
    We were providing an extra argument to GnomeDesktop.RRScreen.
    This caused a JS error preventing the function from
    continuing. After this, we needed to allow D-Bus access to
    "org.gnome.Mutter.DisplayConfig" in the flatpak in order
    to actually present.
    
    Closes https://gitlab.gnome.org/GNOME/gnome-documents/issues/24

 flatpak/org.gnome.Documents.json | 1 +
 src/presentation.js              | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/flatpak/org.gnome.Documents.json b/flatpak/org.gnome.Documents.json
index 3e396266..a9a4b109 100644
--- a/flatpak/org.gnome.Documents.json
+++ b/flatpak/org.gnome.Documents.json
@@ -16,6 +16,7 @@
         "--filesystem=host:ro",
         /* Needs to talk to the network: */
         "--share=network",
+        "--talk-name=org.gnome.Mutter.DisplayConfig",
         /* Tracker access */
         "--talk-name=org.freedesktop.Tracker1",
         "--talk-name=org.freedesktop.Tracker1.Miner.Extract",
diff --git a/src/presentation.js b/src/presentation.js
index 36290d0d..5f0b455a 100644
--- a/src/presentation.js
+++ b/src/presentation.js
@@ -235,7 +235,7 @@ var PresentationOutputs = new Lang.Class({
         this.list = [];
 
         let gdkscreen = Gdk.Screen.get_default();
-        this._screen = GnomeDesktop.RRScreen.new(gdkscreen, null);
+        this._screen = GnomeDesktop.RRScreen.new(gdkscreen);
         this._screen.connect('changed', Lang.bind(this, this._onScreenChanged));
 
         this._config = GnomeDesktop.RRConfig.new_current(this._screen);


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