Commit 96f6a217 authored by Christopher Davis's avatar Christopher Davis

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 #24
parent 8a51b202
Pipeline #64330 passed with stage
in 11 minutes and 12 seconds
......@@ -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",
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment