Bug 1406156

Summary: Flatpak apps can't connect X11 on F25 and Xfce4.
Product: [Fedora] Fedora Reporter: Iiro Laiho <iiro.laiho>
Component: flatpakAssignee: David King <amigadave>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 25CC: amigadave, brandon.abbott
Target Milestone: ---Keywords: Regression, Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-12 10:30:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Iiro Laiho 2016-12-19 21:02:02 UTC
The flatpak apps don't seem to have permission to connect the X server on

$ flatpak -v run org.gnome.Todo 
XA: Allowing x11 access
XA: Allowing wayland access
XA: Running 'bwrap --args 13 /usr/libexec/flatpak-dbus-proxy --fd=15 unix:path=/run/user/1000/bus /run/user/1000/.session-bus-proxy-W3BYSY --filter --own=org.gnome.Todo --own=org.gnome.Todo.* --talk=org.gnome.evolution.dataserver.Sources5 --talk=org.gnome.evolution.dataserver.AddressBook9 --talk=ca.desrt.dconf --talk=org.freedesktop.portal.* --talk=org.gnome.OnlineAccounts --talk=org.gnome.evolution.dataserver.Subprocess.Backend.* --talk=org.gnome.evolution.dataserver.Calendar7'
No protocol specified

(gnome-todo:2): Gtk-WARNING **: cannot open display: :99.0

$ xhost +

$ flatpak -v run org.gnome.Todo
(the app runs ok)

In my opinion there should be no need for manual xhost permission fiddling. It seems to attempt allowing x11 access but fails.

Comment 1 Iiro Laiho 2016-12-19 21:27:05 UTC
Reverting to older version seems to fix the problem. The broken version is 0.6.14-2 and the old, working version is 0.6.13-1.

Comment 2 Iiro Laiho 2016-12-19 21:30:59 UTC
Sorry for this number of comments.

I tried it with LXDE as well, with same results. I installed my system with the Xfce spin and my display manager is thus lightdm.

Comment 3 Iiro Laiho 2016-12-21 16:56:38 UTC
For some reason it seems to work now.

Comment 4 Iiro Laiho 2016-12-21 17:03:28 UTC
Sorry, the Comment 3 was a mistake. I installed the lastest version, logged out and in again and the problem persists.

Comment 5 Iiro Laiho 2016-12-21 17:40:55 UTC
I tested this by switching to GDM, and the problem goes away. GDM does use Wayland and starts the X session as the user that logs in. Maybe that's related to the problem.

Comment 6 brandon.abbott 2016-12-26 00:27:08 UTC
Sorry if this is improper protocol but I've never used this site before. I'm suffering the same bug here (workaround here works as well) on OpenSUSE Tumbleweed. The reported version is also 0.6.14

Comment 7 Fedora End Of Life 2017-11-16 18:39:31 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2017-12-12 10:30:51 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.