Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: cannot open display for GTK apps if Wayland socket exists but does not work #4690

Open
4 tasks done
christianrauch opened this issue Jan 20, 2022 · 18 comments
Open
4 tasks done
Labels

Comments

@christianrauch
Copy link

christianrauch commented Jan 20, 2022

Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.
  • If this is an issue with a particular app, I have tried filing it in the appropriate issue tracker for the app (e.g. under https://github.com/flathub/) and determined that it is an issue with Flatpak itself.
  • This issue is not a report of a security vulnerability (see here if you need to report a security issue).

Flatpak version

1.12.3

What Linux distribution are you using?

Ubuntu

Linux distribution version

20.04

What architecture are you using?

x86_64

How to reproduce

  1. download any GT app, e.g. org.gnome.eog, org.gnome.Calendar, org.gnome.Builder, com.github.tchx84.Flatseal
  2. run it

Expected Behavior

app should start

Actual Behavior

(gnome-builder:2): Gtk-WARNING **: 16:18:35.981: cannot open display: 
(gnome-calendar:2): Gtk-WARNING **: 16:17:32.785: cannot open display: 
(com.github.tchx84.Flatseal:2): Gtk-WARNING **: 16:14:17.869: cannot open display: 
(eog:2): Gtk-WARNING **: 16:23:12.563: cannot open display: 

Additional Information

I believe this happened after the recent flatpak update.

This only affects GTK apps, but this also used to work before. Qt apps, such as org.videolan.VLC, are not affected.

@smcv
Copy link
Collaborator

smcv commented Jan 20, 2022

This looks as though the X11 permission (--socket=x11) is not getting enabled correctly.

Perhaps these apps have --socket=fallback-x11, and something detects a Wayland socket as being available, therefore does not enable the X11 socket?

Do you have a Wayland socket $XDG_RUNTIME_DIR/wayland-0?

Are you running a Wayland compositor, or an X11 (Xorg) window manager?

I believe this happened after the recent flatpak update

1.12.3 and 1.12.4 shouldn't have had any effect on X11 socket permissions.

@smcv
Copy link
Collaborator

smcv commented Jan 20, 2022

Running with flatpak run -vv com.github.tchx84.Flatseal might help to see what is happening.

@christianrauch
Copy link
Author

I am running on X11/Xorg but started (and stopped) an nested Wayland compsitor hours ago. Indeed, the socket $XDG_RUNTIME_DIR/wayland-0 still exists, but lsof tells me that it is not used.

However, this does not explain why GTK apps outside of flatpak are running normally. Usually, GTK apps should just fallback to X11 if a connection via the Wayland socket cannot be established.

I don't see anything special in the verbose flatpak log:

verbose flatpak log
$ flatpak run -vv com.github.tchx84.Flatseal
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /home/christian/.local/share/flatpak
F: Opening user flatpak installation at path /home/christian/.local/share/flatpak
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /home/christian/.local/share/flatpak
F: Opening system flatpak installation at path /var/lib/flatpak
F: /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/lib32 does not exist
F: Cleaning up unused container id 81732792
F: Cleaning up per-app-ID state for org.gnome.eog
F: Allocated instance id 3412499375
F: Add defaults in dir /com/github/tchx84/Flatseal/
F: Add locks in dir /com/github/tchx84/Flatseal/
F: Disallowing network access
F: Allowing dri access
F: Allowing wayland access
F: bwrap --args 39 = ...
F:     --ro-bind
F:     /snap
F:     /snap
F:     --symlink
F:     usr/libx32
F:     /libx32
F:     --ro-bind
F:     /sys
F:     /sys
F:     --ro-bind
F:     /boot
F:     /boot
F:     --ro-bind
F:     /media
F:     /media
F:     --ro-bind
F:     /cdrom
F:     /cdrom
F:     --ro-bind
F:     /root
F:     /root
F:     --symlink
F:     usr/bin
F:     /bin
F:     --ro-bind
F:     /proc
F:     /proc
F:     --ro-bind
F:     /home
F:     /home
F:     --ro-bind
F:     /dev
F:     /dev
F:     --symlink
F:     usr/lib
F:     /lib
F:     --symlink
F:     usr/lib32
F:     /lib32
F:     --ro-bind
F:     /usr
F:     /usr
F:     --symlink
F:     usr/lib64
F:     /lib64
F:     --ro-bind
F:     /opt
F:     /opt
F:     --symlink
F:     usr/sbin
F:     /sbin
F:     --ro-bind
F:     /srv
F:     /srv
F:     --bind
F:     /var
F:     /var
F:     --ro-bind
F:     /mnt
F:     /mnt
F:     --ro-bind
F:     /etc
F:     /etc
F:     --ro-bind
F:     '/lost+found'
F:     '/lost+found'
F:     --bind
F:     /tmp
F:     /tmp
F:     --bind
F:     /run
F:     /run
F:     --bind
F:     /run/user/1000/.dbus-proxy/
F:     /run/user/1000/.dbus-proxy/
F:     --file
F:     38
F:     /.flatpak-info
F: bwrap --args 42 = ...
F:     --fd=41
F:     unix:path=/run/user/1000/bus
F:     /run/user/1000/.dbus-proxy/session-bus-proxy-OYA1F1
F:     --filter
F:     '--own=com.github.tchx84.Flatseal.*'
F:     '--own=org.mpris.MediaPlayer2.com.github.tchx84.Flatseal.*'
F:     --talk=org.gnome.Software
F:     --talk=org.freedesktop.impl.portal.PermissionStore
F:     '--call=org.freedesktop.portal.*=*'
F:     '--broadcast=org.freedesktop.portal.*=@/org/freedesktop/portal/*'
F:     'unix:abstract=/tmp/dbus-KPBEWGBtK3,guid=712f36ef6afa2a0a215d20ed61e68d8d'
F:     /run/user/1000/.dbus-proxy/a11y-bus-proxy-QKA1F1
F:     --filter
F:     --sloppy-names
F:     --call=org.a11y.atspi.Registry=org.a11y.atspi.Socket.Embed@/org/a11y/atspi/accessible/root
F:     --call=org.a11y.atspi.Registry=org.a11y.atspi.Socket.Unembed@/org/a11y/atspi/accessible/root
F:     --call=org.a11y.atspi.Registry=org.a11y.atspi.Registry.GetRegisteredEvents@/org/a11y/atspi/registry
F:     --call=org.a11y.atspi.Registry=org.a11y.atspi.DeviceEventController.GetKeystrokeListeners@/org/a11y/atspi/registry/deviceeventcontroller
F:     --call=org.a11y.atspi.Registry=org.a11y.atspi.DeviceEventController.GetDeviceEventListeners@/org/a11y/atspi/registry/deviceeventcontroller
F:     --call=org.a11y.atspi.Registry=org.a11y.atspi.DeviceEventController.NotifyListenersSync@/org/a11y/atspi/registry/deviceeventcontroller
F:     --call=org.a11y.atspi.Registry=org.a11y.atspi.DeviceEventController.NotifyListenersAsync@/org/a11y/atspi/registry/deviceeventcontroller
F: Running '/usr/libexec/flatpak-bwrap --args 39 /usr/libexec/flatpak-dbus-proxy --args=42'
F: bwrap --args 39 = ...
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files
F:     /usr
F:     --lock-file
F:     /usr/.ref
F:     --ro-bind
F:     /var/lib/flatpak/app/com.github.tchx84.Flatseal/x86_64/stable/5997ee5f4e931adf727ceff655f1eb2ad08b2bce973a1a77cf6913cbb4f1111b/files
F:     /app
F:     --lock-file
F:     /app/.ref
F:     --tmpfs
F:     /usr/lib/x86_64-linux-gnu/GL
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.default/x86_64/21.08/86a1c8526bda603bdfadaaa0c3c76a1afcebf75ad1706c25fee3160765650a13/files
F:     /usr/lib/x86_64-linux-gnu/GL/default
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.nvidia-510-39-01/x86_64/1.4/3a698bea9b6386159ff014d5f75058fd42b9bc7a6e5eaaa57d343f62faf195ff/files
F:     /usr/lib/x86_64-linux-gnu/GL/nvidia-510-39-01
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/21.08/0404936619a46191d7bbfbcf553b1cac3a671c87aa5ccdc50c655eac613d88c0/files
F:     /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.freedesktop.Platform.openh264/x86_64/2.0beta/901b15dbafbcefe928647df945f36e840a302993c234aba7ebcc11a5d2501a74/files
F:     /usr/lib/x86_64-linux-gnu/openh264
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.freedesktop.Platform.openh264/x86_64/2.0/73f998362a6fc0d57e0c7e83e928d32b0ec14d10d0d94291033976bdcecc6b6b/files
F:     /usr/lib/x86_64-linux-gnu/openh264
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform.Locale/x86_64/41/11707975644b3df5ea8b4dc4b5924f3110e4a4353b936a11207d5178e118dcff-en/files
F:     /usr/share/runtime/locale
F:     --tmpfs
F:     /usr/share/runtime/share/themes
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gtk.Gtk3theme.Yaru/x86_64/3.22/44fd352021cb35d931ace8a88321c484027127992928eeeda208ff3d3a6465c4/files
F:     /usr/share/runtime/share/themes/Yaru/gtk-3.0
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gtk.Gtk3theme.Yaru-dark/x86_64/3.22/5422dec8f669d36a612f29c48afaf77dfb27c77a4b25286c2cea44e0e5a83ca8/files
F:     /usr/share/runtime/share/themes/Yaru-dark/gtk-3.0
F:     --ro-bind-data
F:     19
F:     /run/flatpak/ld.so.conf.d/runtime-001-org.freedesktop.Platform.GL.default.conf
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vulkan/icd.d/virtio_icd.x86_64.json
F:     /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/virtio_icd.x86_64.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vulkan/icd.d/intel_icd.x86_64.json
F:     /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/intel_icd.x86_64.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vulkan/icd.d/lvp_icd.x86_64.json
F:     /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/lvp_icd.x86_64.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vulkan/icd.d/radeon_icd.x86_64.json
F:     /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/radeon_icd.x86_64.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/glvnd/egl_vendor.d/50_mesa.json
F:     /usr/lib/x86_64-linux-gnu/GL/glvnd/egl_vendor.d/50_mesa.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/OpenCL/vendors/mesa.icd
F:     /usr/lib/x86_64-linux-gnu/GL/OpenCL/vendors/mesa.icd
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/radeonsi_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/virtio_gpu_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/virtio_gpu_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/r600_drv_video.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/r600_drv_video.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/i915_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/i915_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/nouveau_vieux_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/nouveau_vieux_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/radeonsi_drv_video.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/r600_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/r600_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/swrast_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/swrast_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/i965_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/i965_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/iris_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/iris_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/libgallium_drv_video.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/libgallium_drv_video.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/kms_swrast_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/kms_swrast_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/nouveau_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/nouveau_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/r300_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/r300_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/zink_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/zink_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/r200_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/r200_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/i830_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/i830_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/nouveau_drv_video.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/nouveau_drv_video.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/vmwgfx_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/vmwgfx_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/libgallium_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/libgallium_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/radeon_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeon_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/libmesa_dri_drivers.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/libmesa_dri_drivers.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/crocus_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/crocus_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/d3d/d3dadapter9.so.1.0.0
F:     /usr/lib/x86_64-linux-gnu/GL/lib/d3d/d3dadapter9.so.1.0.0
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/d3d/d3dadapter9.so.1
F:     /usr/lib/x86_64-linux-gnu/GL/lib/d3d/d3dadapter9.so.1
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vulkan/explicit_layer.d/VkLayer_MESA_overlay.json
F:     /usr/lib/x86_64-linux-gnu/GL/vulkan/explicit_layer.d/VkLayer_MESA_overlay.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vulkan/implicit_layer.d/VkLayer_MESA_device_select.json
F:     /usr/lib/x86_64-linux-gnu/GL/vulkan/implicit_layer.d/VkLayer_MESA_device_select.json
F:     --ro-bind-data
F:     20
F:     /run/flatpak/ld.so.conf.d/runtime-002-org.freedesktop.Platform.GL.nvidia-510-39-01.conf
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/nvidia-510-39-01/vulkan/icd.d/nvidia_icd.json
F:     /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/nvidia_icd.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/nvidia-510-39-01/glvnd/egl_vendor.d/10_nvidia.json
F:     /usr/lib/x86_64-linux-gnu/GL/glvnd/egl_vendor.d/10_nvidia.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/nvidia-510-39-01/egl/egl_external_platform.d/10_nvidia.json
F:     /usr/lib/x86_64-linux-gnu/GL/egl/egl_external_platform.d/10_nvidia.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/nvidia-510-39-01/egl/egl_external_platform.d/15_nvidia_gbm.json
F:     /usr/lib/x86_64-linux-gnu/GL/egl/egl_external_platform.d/15_nvidia_gbm.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/nvidia-510-39-01/OpenCL/vendors/nvidia.icd
F:     /usr/lib/x86_64-linux-gnu/GL/OpenCL/vendors/nvidia.icd
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/nvidia-510-39-01/vulkan/implicit_layer.d/nvidia_layers.json
F:     /usr/lib/x86_64-linux-gnu/GL/vulkan/implicit_layer.d/nvidia_layers.json
F:     --ro-bind-data
F:     21
F:     /run/flatpak/ld.so.conf.d/runtime-003-org.freedesktop.Platform.VAAPI.Intel.conf
F:     --ro-bind-data
F:     22
F:     /run/flatpak/ld.so.conf.d/runtime-004-org.freedesktop.Platform.openh264.conf
F:     --ro-bind-data
F:     23
F:     /run/flatpak/ld.so.conf.d/runtime-005-org.freedesktop.Platform.openh264.conf
F:     --proc
F:     /proc
F:     --unshare-pid
F:     --dir
F:     /tmp
F:     --dir
F:     /var/tmp
F:     --dir
F:     /run/host
F:     --dir
F:     /run/user/1000
F:     --setenv
F:     XDG_RUNTIME_DIR
F:     /run/user/1000
F:     --symlink
F:     ../run
F:     /var/run
F:     --ro-bind
F:     /sys/block
F:     /sys/block
F:     --ro-bind
F:     /sys/bus
F:     /sys/bus
F:     --ro-bind
F:     /sys/class
F:     /sys/class
F:     --ro-bind
F:     /sys/dev
F:     /sys/dev
F:     --ro-bind
F:     /sys/devices
F:     /sys/devices
F:     --ro-bind-try
F:     /proc/self/ns/user
F:     /run/.userns
F:     --symlink
F:     /etc/timezone
F:     /var/db/zoneinfo
F:     --ro-bind-data
F:     25
F:     /etc/passwd
F:     --ro-bind-data
F:     26
F:     /etc/group
F:     --ro-bind-data
F:     27
F:     /etc/pkcs11/pkcs11.conf
F:     --ro-bind
F:     /etc/machine-id
F:     /etc/machine-id
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/ld.so.conf
F:     /etc/ld.so.conf
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/moduli
F:     /etc/moduli
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/pki
F:     /etc/pki
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/services
F:     /etc/services
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/nsswitch.conf
F:     /etc/nsswitch.conf
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/alsa
F:     /etc/alsa
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/krb5.conf
F:     /etc/krb5.conf
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/gtk-3.0
F:     /etc/gtk-3.0
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/dbus-1
F:     /etc/dbus-1
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/protocols
F:     /etc/protocols
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/rc_keymaps
F:     /etc/rc_keymaps
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/profile.d
F:     /etc/profile.d
F:     --symlink
F:     ../../proc/self/mounts
F:     /etc/mtab
F:     --symlink
F:     ../usr/lib/os-release
F:     /etc/os-release
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/issue.net
F:     /etc/issue.net
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/geoclue
F:     /etc/geoclue
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/ssh_config
F:     /etc/ssh_config
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/fonts
F:     /etc/fonts
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/e2scrub.conf
F:     /etc/e2scrub.conf
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/vdpau_wrapper.cfg
F:     /etc/vdpau_wrapper.cfg
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/ssl
F:     /etc/ssl
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/mke2fs.conf
F:     /etc/mke2fs.conf
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/rc_maps.cfg
F:     /etc/rc_maps.cfg
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/rpc
F:     /etc/rpc
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/wgetrc
F:     /etc/wgetrc
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/pulse
F:     /etc/pulse
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/xdg
F:     /etc/xdg
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/ld.so.cache
F:     /etc/ld.so.cache
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/xattr.conf
F:     /etc/xattr.conf
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/41/8cde01d2000524000e971502b544f2b16cddebcc9fbf014c4d19999eb23c5d3a/files/etc/issue
F:     /etc/issue
F:     --bind
F:     /home/christian/.var/app/com.github.tchx84.Flatseal/cache
F:     /var/cache
F:     --bind
F:     /home/christian/.var/app/com.github.tchx84.Flatseal/data
F:     /var/data
F:     --bind
F:     /home/christian/.var/app/com.github.tchx84.Flatseal/config
F:     /var/config
F:     --bind
F:     /home/christian/.var/app/com.github.tchx84.Flatseal/cache/tmp
F:     /var/tmp
F:     --symlink
F:     usr/bin
F:     /bin
F:     --symlink
F:     usr/lib
F:     /lib
F:     --symlink
F:     usr/lib64
F:     /lib64
F:     --symlink
F:     usr/sbin
F:     /sbin
F:     --ro-bind
F:     /usr/share/zoneinfo
F:     /usr/share/zoneinfo
F:     --symlink
F:     ../usr/share/zoneinfo/Europe/London
F:     /etc/localtime
F:     --ro-bind-data
F:     28
F:     /etc/timezone
F:     --seccomp
F:     29
F:     --ro-bind
F:     /run/user/1000/.flatpak-helper/monitor
F:     /run/host/monitor
F:     --symlink
F:     /run/host/monitor/resolv.conf
F:     /etc/resolv.conf
F:     --symlink
F:     /run/host/monitor/host.conf
F:     /etc/host.conf
F:     --symlink
F:     /run/host/monitor/hosts
F:     /etc/hosts
F:     --symlink
F:     /run/host/monitor/gai.conf
F:     /etc/gai.conf
F:     --ro-bind-data
F:     30
F:     /etc/pkcs11/modules/p11-kit-trust.module
F:     --ro-bind
F:     /run/user/1000/.flatpak-helper/pkcs11-flatpak-98237
F:     /run/flatpak/p11-kit/pkcs11
F:     --ro-bind-data
F:     31
F:     /etc/ld.so.conf
F:     --ro-bind-data
F:     24
F:     /etc/ld.so.cache
F:     --ro-bind
F:     /run/user/1000/.flatpak/3412499375
F:     /run/flatpak/.flatpak/3412499375
F:     --lock-file
F:     /run/flatpak/.flatpak/3412499375/.ref
F:     --file
F:     33
F:     /.flatpak-info
F:     --ro-bind-data
F:     34
F:     /.flatpak-info
F:     --setenv
F:     container
F:     flatpak
F:     --ro-bind-data
F:     35
F:     /run/host/container-manager
F:     --info-fd
F:     36
F:     --bind
F:     /run/user/1000/.flatpak/com.github.tchx84.Flatseal/xdg-run
F:     /run/user/1000
F:     --bind
F:     /run/user/1000/doc/by-app/com.github.tchx84.Flatseal
F:     /run/flatpak/doc
F:     --unshare-net
F:     --dev
F:     /dev
F:     --dev-bind
F:     /dev/dri
F:     /dev/dri
F:     --dev-bind
F:     /dev/nvidiactl
F:     /dev/nvidiactl
F:     --dev-bind
F:     /dev/nvidia-modeset
F:     /dev/nvidia-modeset
F:     --dev-bind
F:     /dev/nvidia-uvm
F:     /dev/nvidia-uvm
F:     --dev-bind
F:     /dev/nvidia-uvm-tools
F:     /dev/nvidia-uvm-tools
F:     --dev-bind
F:     /dev/nvidia0
F:     /dev/nvidia0
F:     --bind
F:     /run/user/1000/.flatpak/com.github.tchx84.Flatseal/tmp
F:     /tmp
F:     --bind
F:     /run/user/1000/app/com.github.tchx84.Flatseal
F:     /run/flatpak/app/com.github.tchx84.Flatseal
F:     --dir
F:     /home/christian
F:     --dir
F:     /home/christian/.local/share/flatpak
F:     --ro-bind
F:     /home/christian/.local/share/flatpak/app
F:     /home/christian/.local/share/flatpak/app
F:     --bind
F:     /home/christian/.local/share/flatpak/overrides
F:     /home/christian/.local/share/flatpak/overrides
F:     --dir
F:     /home/christian/.var/app
F:     --bind
F:     /home/christian/.var/app/com.github.tchx84.Flatseal
F:     /home/christian/.var/app/com.github.tchx84.Flatseal
F:     --ro-bind
F:     /var/lib/flatpak/app
F:     /var/lib/flatpak/app
F:     --ro-bind
F:     /etc/os-release
F:     /run/host/os-release
F:     --ro-bind
F:     /run/user/1000/wayland-0
F:     /run/flatpak/wayland-0
F:     --tmpfs
F:     /tmp/.X11-unix
F:     --ro-bind
F:     /run/user/1000/.dbus-proxy/session-bus-proxy-OYA1F1
F:     /run/flatpak/bus
F:     --ro-bind
F:     /run/user/1000/.dbus-proxy/a11y-bus-proxy-QKA1F1
F:     /run/flatpak/at-spi-bus
F:     --sync-fd
F:     40
F:     --ro-bind
F:     /run/user/1000/.flatpak/com.github.tchx84.Flatseal/.ref
F:     /run/flatpak/per-app-dirs-ref
F:     --lock-file
F:     /run/flatpak/per-app-dirs-ref
F:     --ro-bind
F:     /run/systemd/journal/socket
F:     /run/systemd/journal/socket
F:     --ro-bind
F:     /run/systemd/journal/stdout
F:     /run/systemd/journal/stdout
F:     --ro-bind
F:     /usr/share/fonts
F:     /run/host/fonts
F:     --ro-bind
F:     /usr/local/share/fonts
F:     /run/host/local-fonts
F:     --ro-bind
F:     /var/cache/fontconfig
F:     /run/host/fonts-cache
F:     --ro-bind
F:     /home/christian/.fonts
F:     /run/host/user-fonts
F:     --ro-bind
F:     /home/christian/.cache/fontconfig
F:     /run/host/user-fonts-cache
F:     --ro-bind-data
F:     38
F:     /run/host/font-dirs.xml
F:     --ro-bind
F:     /usr/share/icons
F:     /run/host/share/icons
F:     --ro-bind
F:     /home/christian/.local/share/icons
F:     /run/host/user-share/icons
F:     --symlink
F:     /app/lib/debug/source
F:     /run/build
F:     --symlink
F:     /usr/lib/debug/source
F:     /run/build-runtime
F:     --setenv
F:     ALSA_CONFIG_DIR
F:     /usr/share/alsa
F:     --setenv
F:     ALSA_CONFIG_PATH
F:     /usr/share/alsa/alsa-flatpak.conf
F:     --setenv
F:     AT_SPI_BUS_ADDRESS
F:     unix:path=/run/flatpak/at-spi-bus
F:     --setenv
F:     CMAKE_PREFIX_PATH
F:     /opt/ros/noetic
F:     --setenv
F:     COLORTERM
F:     truecolor
F:     --setenv
F:     DBUS_SESSION_BUS_ADDRESS
F:     unix:path=/run/flatpak/bus
F:     --setenv
F:     DEFAULTS_PATH
F:     /usr/share/gconf/ubuntu.default.path
F:     --setenv
F:     DESKTOP_SESSION
F:     ubuntu
F:     --setenv
F:     FLATPAK_ID
F:     com.github.tchx84.Flatseal
F:     --setenv
F:     FLATPAK_SANDBOX_DIR
F:     /home/christian/.var/app/com.github.tchx84.Flatseal/sandbox
F:     --setenv
F:     GDMSESSION
F:     ubuntu
F:     --setenv
F:     GI_TYPELIB_PATH
F:     /app/lib/girepository-1.0
F:     --setenv
F:     GNOME_DESKTOP_SESSION_ID
F:     this-is-deprecated
F:     --setenv
F:     GNOME_SHELL_SESSION_MODE
F:     ubuntu
F:     --setenv
F:     GNOME_TERMINAL_SCREEN
F:     /org/gnome/Terminal/screen/3cb01163_e080_4d08_b775_fbf212e3e509
F:     --setenv
F:     GNOME_TERMINAL_SERVICE
F:     :1.507
F:     --setenv
F:     GPG_AGENT_INFO
F:     /run/user/1000/gnupg/S.gpg-agent:0:1
F:     --setenv
F:     GST_PLUGIN_SYSTEM_PATH
F:     /app/lib/gstreamer-1.0:/usr/lib/extensions/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0
F:     --setenv
F:     GTK_MODULES
F:     gail:atk-bridge
F:     --setenv
F:     HOME
F:     /home/christian
F:     --setenv
F:     IM_CONFIG_PHASE
F:     1
F:     --setenv
F:     INVOCATION_ID
F:     96f4a742c5224d6198674aa6ba24242e
F:     --setenv
F:     JOURNAL_STREAM
F:     8:63717
F:     --setenv
F:     LANG
F:     en_GB.UTF-8
F:     --setenv
F:     LANGUAGE
F:     en_GB
F:     --setenv
F:     LC_ADDRESS
F:     en_GB.UTF-8
F:     --setenv
F:     LC_ALL
F:     en_GB.UTF-8
F:     --setenv
F:     LC_IDENTIFICATION
F:     en_GB.UTF-8
F:     --setenv
F:     LC_MEASUREMENT
F:     en_GB.UTF-8
F:     --setenv
F:     LC_MONETARY
F:     en_GB.UTF-8
F:     --setenv
F:     LC_NAME
F:     en_GB.UTF-8
F:     --setenv
F:     LC_NUMERIC
F:     en_GB.UTF-8
F:     --setenv
F:     LC_PAPER
F:     en_GB.UTF-8
F:     --setenv
F:     LC_TELEPHONE
F:     en_GB.UTF-8
F:     --setenv
F:     LC_TIME
F:     en_GB.UTF-8
F:     --setenv
F:     LD_LIBRARY_PATH
F:     ''
F:     --setenv
F:     LESSCLOSE
F:     '/usr/bin/lesspipe %s %s'
F:     --setenv
F:     LESSOPEN
F:     '| /usr/bin/lesspipe %s'
F:     --setenv
F:     LOGNAME
F:     christian
F:     --setenv
F:     LS_COLORS
F:     'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
F:     --setenv
F:     MANAGERPID
F:     4109
F:     --setenv
F:     MANDATORY_PATH
F:     /usr/share/gconf/ubuntu.mandatory.path
F:     --setenv
F:     PAPERSIZE
F:     a4
F:     --setenv
F:     PATH
F:     /app/bin:/usr/bin
F:     --setenv
F:     PKG_CONFIG_PATH
F:     /opt/ros/noetic/lib/pkgconfig:/opt/ros/noetic/lib/x86_64-linux-gnu/pkgconfig
F:     --setenv
F:     PS1
F:     '[📦 $FLATPAK_ID \W]\$ '
F:     --setenv
F:     PWD
F:     /home/christian
F:     --setenv
F:     QT_ACCESSIBILITY
F:     1
F:     --setenv
F:     QT_IM_MODULE
F:     ibus
F:     --setenv
F:     ROSLISP_PACKAGE_DIRECTORIES
F:     ''
F:     --setenv
F:     ROS_DISTRO
F:     noetic
F:     --setenv
F:     ROS_ETC_DIR
F:     /opt/ros/noetic/etc/ros
F:     --setenv
F:     ROS_MASTER_URI
F:     http:https://localhost:11311
F:     --setenv
F:     ROS_PACKAGE_PATH
F:     /opt/ros/noetic/share
F:     --setenv
F:     ROS_PYTHON_VERSION
F:     3
F:     --setenv
F:     ROS_ROOT
F:     /opt/ros/noetic/share/ros
F:     --setenv
F:     ROS_VERSION
F:     1
F:     --setenv
F:     SESSION_MANAGER
F:     'local/gungnir:@/tmp/.ICE-unix/5320,unix/gungnir:/tmp/.ICE-unix/5320'
F:     --setenv
F:     SHELL
F:     /bin/sh
F:     --setenv
F:     SHLVL
F:     1
F:     --setenv
F:     SSH_AGENT_PID
F:     5166
F:     --setenv
F:     SSH_AUTH_SOCK
F:     /run/user/1000/keyring/ssh
F:     --setenv
F:     TERM
F:     xterm-256color
F:     --setenv
F:     USER
F:     christian
F:     --setenv
F:     USERNAME
F:     christian
F:     --setenv
F:     VTE_VERSION
F:     6003
F:     --setenv
F:     WINDOWPATH
F:     2
F:     --setenv
F:     XAUTHORITY
F:     /run/user/1000/gdm/Xauthority
F:     --setenv
F:     XDG_CACHE_HOME
F:     /home/christian/.var/app/com.github.tchx84.Flatseal/cache
F:     --setenv
F:     XDG_CONFIG_DIRS
F:     /app/etc/xdg:/etc/xdg
F:     --setenv
F:     XDG_CONFIG_HOME
F:     /home/christian/.var/app/com.github.tchx84.Flatseal/config
F:     --setenv
F:     XDG_CURRENT_DESKTOP
F:     ubuntu:GNOME
F:     --setenv
F:     XDG_DATA_DIRS
F:     /app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share
F:     --setenv
F:     XDG_DATA_HOME
F:     /home/christian/.var/app/com.github.tchx84.Flatseal/data
F:     --setenv
F:     XDG_MENU_PREFIX
F:     gnome-
F:     --setenv
F:     XDG_SESSION_CLASS
F:     user
F:     --setenv
F:     XDG_SESSION_DESKTOP
F:     ubuntu
F:     --setenv
F:     XDG_SESSION_TYPE
F:     x11
F:     --setenv
F:     XMODIFIERS
F:     @im=ibus
F:     --setenv
F:     _
F:     /usr/bin/flatpak
F:     --setenv
F:     __EGL_EXTERNAL_PLATFORM_CONFIG_DIRS
F:     /etc/egl/egl_external_platform.d:/usr/lib/x86_64-linux-gnu/GL/egl/egl_external_platform.d:/usr/share/egl/egl_external_platform.d
F: Running '/usr/libexec/flatpak-bwrap --args 39 com.github.tchx84.Flatseal'

(com.github.tchx84.Flatseal:2): Gtk-WARNING **: 16:58:36.156: cannot open display: 

@christianrauch
Copy link
Author

Simply removing the socket via rm $XDG_RUNTIME_DIR/wayland-0 solves the issue for me. But it would be much better if flatpak would be "robust" to these situations.

I can reproduce this the following way on a an X11 session:

  1. start nested mutter (version 3.36.9): mutter --wayland --nested
  2. quit quit Ctrl+C
  3. check with lsof $XDG_RUNTIME_DIR/wayland-0 that the socket still exists but has no connections
  4. run flatpak run org.gnome.eog -> this will fail
  5. run eog -> this will succeed

@christianrauch
Copy link
Author

@smcv If I remove the socket=fallback-x11 from the flatpak, then I cannot reproduce this issue with the steps above any more. I think the flatpak X11 fallback is to blame here. It should behave like the GTK fallback, that is fall back to X11 if a connection cannot be established. But the flatpak fallback only seems to check if the socket exists, not if it actually works.

@smcv
Copy link
Collaborator

smcv commented Jan 20, 2022

Right, what's happening here is as I suspected:

  • Normal GTK apps will try to use Wayland, fail, fall back to X11, and succeed
  • Most GTK Flatpak apps have --socket=fallback-x11, which means Flatpak will try to detect whether Wayland is available, and if yes, don't share the X11 socket with the app in order to avoid opening a sandbox hole
  • But the detection of whether Wayland is available is pretty simplistic, and only checks whether the socket exists, not whether it works

We don't really want Flatpak to implement all of Wayland, so the question is whether there's a simple check that is a little less simplistic than "does the socket exist?" while still not slowing down app launch or adding dependencies.

@christianrauch
Copy link
Author

We don't really want Flatpak to implement all of Wayland, so the question is whether there's a simple check that is a little less simplistic than "does the socket exist?" while still not slowing down app launch or adding dependencies.

flatpak could at least check that the socket is used by a process (which would be the Wayland server). If it is not used by the process that created the socket, it should allow apps to use the X11 socket.

@smcv smcv changed the title [Bug]: cannot open display for GTK apps [Bug]: cannot open display for GTK apps if Wayland socket exists but does not work Jan 25, 2022
@heyakyra
Copy link

Is there any risk to removing $XDG_RUNTIME_DIR/wayland-0? Is there another way to start up a flatpak app with this issue other than removing that file?

@Erick555
Copy link
Contributor

It's safe to remove the file if it;s not used. It will be re-created automatically.

Other than starting to use wayland for real you can force all flatpaks to use x11 by flatpak override --user --socket=x11 --nosocket=fallback-x11.

@fir3-1ce
Copy link

Other than starting to use wayland for real you can force all flatpaks to use x11 by flatpak override --user --socket=x11 --nosocket=fallback-x11.

If I do this, will it cause more problems when I boot back into a Wayland session? I like to switch between the two for various things.

@Erick555
Copy link
Contributor

The functionality will remain the same: apps will use x11 on xorg session and wayland on wayland session but on wayland session they will also have access to xwayland server which weakens the sandbox in case app end up being malicious.

@qrkourier
Copy link

I'm getting this error but possibly for a different reason. The Wayland socket does not exist in my case, and setting all Flatpaks to use X11 did not work around the issue.

$ flatpak run com.github.tchx84.Flatseal
F: X11 socket /tmp/.X11-unix/X1 does not exist in filesystem.         
F: X11 access will require --share=network permission.
                                              
(com.github.tchx84.Flatseal:2): Gtk-WARNING **: 09:44:00.424: Failed to open display

$ (set -x; stat $XDG_RUNTIME_DIR/wayland-0;)
+ stat /run/user/1000/wayland-0
stat: cannot statx '/run/user/1000/wayland-0': No such file or directory

$ flatpak override --user --socket=x11 --nosocket=fallback-x11

$ flatpak run com.github.tchx84.Flatseal

(com.github.tchx84.Flatseal:2): Gtk-WARNING **: 09:50:49.916: Failed to open display

@abergmeier
Copy link

I'm getting this error but possibly for a different reason. The Wayland socket does not exist in my case, and setting all Flatpaks to use X11 did not work around the issue.

$ flatpak run com.github.tchx84.Flatseal

(com.github.tchx84.Flatseal:2): Gtk-WARNING **: 09:50:49.916: Failed to open display

This is exactly the error that I am getting.
Flatpak would have way better UX if it would detect that a display connection was attempted and would analyze, why it possibly could not work.

@v217
Copy link

v217 commented May 12, 2024

I get the same error.
I am running wayland on fedora atomic silverblue 40. After running
sudo -i
and then
flatpak run org.gnome.baobab
I get this error:
(baobab:2): Gtk-WARNING **: 14:15:45.533: Failed to open display
or after running:
flatpak run -vv org.gnome.baobab

F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /root/.local/share/flatpak
F: Opening user flatpak installation at path /root/.local/share/flatpak
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /root/.local/share/flatpak
F: Opening system flatpak installation at path /var/lib/flatpak
F: /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/lib32 does not exist
F: Cleaning up unused container id 2917442671
F: Cleaning up per-app-ID state for org.gnome.baobab
F: Allocated instance id 1314154979
F: Add values in dir '/org/gnome/baobab/', prefix is '/org/gnome/baobab/'
F: Add defaults in dir /org/gnome/baobab/
F: Add locks in dir /org/gnome/baobab/
F: writing D-Conf values to /root/.var/app/org.gnome.baobab/config/glib-2.0/settings/keyfile
F: Disallowing network access
F: Allowing dri access
F: Allowing host-fs access
F: Trying to export read/write: /home
F: /home is a symlink, resolved to /var/home
F: Trying to export the target instead: /var/home
F: Trying to export read/write: /var/home
F: /var is not a symlink
F: /var/home is not a symlink
F: Will export read/write: /var/home
F: Will create symbolic link: /home
F: Trying to export read/write: /media
F: /media is a symlink, resolved to /run/media
F: Trying to export the target instead: /run/media
F: Trying to export read/write: /run/media
F: /run is not a symlink
F: /run/media is not a symlink
F: Will export read/write: /run/media
F: Will create symbolic link: /media
F: Trying to export read/write: /mnt
F: /mnt is a symlink, resolved to /var/mnt
F: Trying to export the target instead: /var/mnt
F: Trying to export read/write: /var/mnt
F: /var is not a symlink
F: /var/mnt is not a symlink
F: Will export read/write: /var/mnt
F: Will create symbolic link: /mnt
F: Trying to export read/write: /opt
F: /opt is a symlink, resolved to /var/opt
F: Trying to export the target instead: /var/opt
F: Trying to export read/write: /var/opt
F: /var is not a symlink
F: /var/opt is not a symlink
F: Will export read/write: /var/opt
F: Will create symbolic link: /opt
F: Trying to export read/write: /ostree
F: /ostree is a symlink, resolved to /sysroot/ostree
F: Trying to export the target instead: /sysroot/ostree
F: Trying to export read/write: /sysroot/ostree
F: /sysroot is not a symlink
F: /sysroot/ostree is not a symlink
F: Will export read/write: /sysroot/ostree
F: Will create symbolic link: /ostree
F: Trying to export read/write: /srv
F: /srv is a symlink, resolved to /var/srv
F: Trying to export the target instead: /var/srv
F: Trying to export read/write: /var/srv
F: /var is not a symlink
F: /var/srv is not a symlink
F: Will export read/write: /var/srv
F: Will create symbolic link: /srv
F: Trying to export read/write: /sysroot
F: /sysroot is not a symlink
F: Will export read/write: /sysroot
F: Trying to export read/write: /run/media
F: /run is not a symlink
F: /run/media is not a symlink
F: Not changing export mode from "export read/write" to "export read/write": /run/media
F: Trying to export read/write: /root/.var/app
F: /root is a symlink, resolved to /var/roothome
F: Trying to export the target instead: /var/roothome/.var/app
F: Trying to export read/write: /var/roothome/.var/app
F: /var is not a symlink
F: /var/roothome is not a symlink
F: /var/roothome/.var is not a symlink
F: /var/roothome/.var/app is not a symlink
F: Will export read/write: /var/roothome/.var/app
F: Will create symbolic link: /root
F: Trying to replace with tmpfs: /root/.var/app
F: /root is a symlink, resolved to /var/roothome
F: Trying to export the target instead: /var/roothome/.var/app
F: Trying to replace with tmpfs: /var/roothome/.var/app
F: /var is not a symlink
F: /var/roothome is not a symlink
F: /var/roothome/.var is not a symlink
F: /var/roothome/.var/app is not a symlink
F: Not changing export mode from "export read/write" to "replace with tmpfs": /var/roothome/.var/app
F: Not changing export mode from "create symbolic link" to "create symbolic link": /root
F: Trying to export read/write: /root/.var/app/org.gnome.baobab
F: /root is a symlink, resolved to /var/roothome
F: Trying to export the target instead: /var/roothome/.var/app/org.gnome.baobab
F: Trying to export read/write: /var/roothome/.var/app/org.gnome.baobab
F: /var is not a symlink
F: /var/roothome is not a symlink
F: /var/roothome/.var is not a symlink
F: /var/roothome/.var/app is not a symlink
F: /var/roothome/.var/app/org.gnome.baobab is not a symlink
F: Will export read/write: /var/roothome/.var/app/org.gnome.baobab
F: Not changing export mode from "create symbolic link" to "create symbolic link": /root
F: Trying to replace with tmpfs: /root/.local/share/flatpak
F: /root is a symlink, resolved to /var/roothome
F: Trying to export the target instead: /var/roothome/.local/share/flatpak
F: Trying to replace with tmpfs: /var/roothome/.local/share/flatpak
F: /var is not a symlink
F: /var/roothome is not a symlink
F: /var/roothome/.local is not a symlink
F: /var/roothome/.local/share is not a symlink
F: /var/roothome/.local/share/flatpak is not a symlink
F: Will replace with tmpfs: /var/roothome/.local/share/flatpak
F: Not changing export mode from "create symbolic link" to "create symbolic link": /root
F: Trying to ensure existence of directory: /root
F: /root is a symlink, resolved to /var/roothome
F: Trying to export the target instead: /var/roothome
F: Trying to ensure existence of directory: /var/roothome
F: /var is not a symlink
F: /var/roothome is not a symlink
F: Will ensure existence of directory: /var/roothome
F: Not changing export mode from "create symbolic link" to "create symbolic link": /root
F: Converting FlatpakExports to bwrap arguments...
F: "/home" is meant to be a symlink
F: Resolved "/home" to "/var/home" in host
F: Creating "/home" -> "var/home" in sandbox
F: "/media" is meant to be a symlink
F: Resolved "/media" to "/run/media" in host
F: Creating "/media" -> "run/media" in sandbox
F: "/mnt" is meant to be a symlink
F: Resolved "/mnt" to "/var/mnt" in host
F: Creating "/mnt" -> "var/mnt" in sandbox
F: "/opt" is meant to be a symlink
F: Resolved "/opt" to "/var/opt" in host
F: Creating "/opt" -> "var/opt" in sandbox
F: "/ostree" is meant to be a symlink
F: Resolved "/ostree" to "/sysroot/ostree" in host
F: Creating "/ostree" -> "sysroot/ostree" in sandbox
F: "/root" is meant to be a symlink
F: Resolved "/root" to "/var/roothome" in host
F: Creating "/root" -> "var/roothome" in sandbox
F: "/run/media" is meant to be shared (ro or rw) with the container
F: "/srv" is meant to be a symlink
F: Resolved "/srv" to "/var/srv" in host
F: Creating "/srv" -> "var/srv" in sandbox
F: "/sysroot" is meant to be shared (ro or rw) with the container
F: "/sysroot/ostree" is meant to be shared (ro or rw) with the container
F: "/var/home" is meant to be shared (ro or rw) with the container
F: "/var/mnt" is meant to be shared (ro or rw) with the container
F: "/var/opt" is meant to be shared (ro or rw) with the container
F: "/var/roothome" is meant to be a directory
F: Ensuring "/var/roothome" is created as a directory
F: "/var/roothome/.local/share/flatpak" is meant to be a tmpfs or empty directory
F: Parent of "/var/roothome/.local/share/flatpak" is not mapped, creating empty directory
F: "/var/roothome/.var/app" is meant to be shared (ro or rw) with the container
F: "/var/roothome/.var/app/org.gnome.baobab" is meant to be shared (ro or rw) with the container
F: "/var/srv" is meant to be shared (ro or rw) with the container
F: Allowing wayland access
F: Allowing x11 access
F: Failed to run in transient scope: No systemd user session available, cgroups not available
F: bwrap --args 39 = ...
F:     --symlink
F:     usr/bin
F:     /bin
F:     --symlink
F:     var/home
F:     /home
F:     --symlink
F:     usr/lib
F:     /lib
F:     --symlink
F:     usr/lib64
F:     /lib64
F:     --symlink
F:     run/media
F:     /media
F:     --symlink
F:     var/mnt
F:     /mnt
F:     --symlink
F:     var/opt
F:     /opt
F:     --symlink
F:     sysroot/ostree
F:     /ostree
F:     --symlink
F:     var/roothome
F:     /root
F:     --symlink
F:     usr/sbin
F:     /sbin
F:     --symlink
F:     var/srv
F:     /srv
F:     --ro-bind
F:     /boot
F:     /boot
F:     --ro-bind
F:     /dev
F:     /dev
F:     --ro-bind
F:     /proc
F:     /proc
F:     --bind
F:     /run
F:     /run
F:     --ro-bind
F:     /sys
F:     /sys
F:     --ro-bind
F:     /sysroot
F:     /sysroot
F:     --bind
F:     /tmp
F:     /tmp
F:     --ro-bind
F:     /usr
F:     /usr
F:     --bind
F:     /var
F:     /var
F:     --ro-bind
F:     /etc
F:     /etc
F:     --bind
F:     /var/roothome/.cache/.dbus-proxy/
F:     /var/roothome/.cache/.dbus-proxy/
F:     --perms
F:     0600
F:     --file
F:     36
F:     /.flatpak-info
F: bwrap --args 41 = ...
F:     --fd=40
F:     unix:path=/var/run/dbus/system_bus_socket
F:     /var/roothome/.cache/.dbus-proxy/system-bus-proxy-CS5SN2
F:     --filter
F:     --talk=org.freedesktop.hostname1
F: Running '/usr/bin/bwrap --args 39 -- /usr/bin/xdg-dbus-proxy --args=41'
F: bwrap --args 39 = ...
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files
F:     /usr
F:     --lock-file
F:     /usr/.ref
F:     --ro-bind
F:     /var/lib/flatpak/app/org.gnome.baobab/x86_64/stable/8ffa59a1c2b99cc4018039e2b7097bbece9de1913ab8565c8580d88244a9b420/files
F:     /app
F:     --lock-file
F:     /app/.ref
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.baobab.Locale/x86_64/stable/3aa1c9438596399a0b7db6cda74d7468c38435cd2dc43678920a5b0572897089-en/files
F:     /app/share/runtime/locale
F:     --tmpfs
F:     /usr/lib/x86_64-linux-gnu/GL
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.default/x86_64/23.08/d8be2926866b1a308b4c7842fb87b2e98c19cfa4a66813757e79c8b3177ef26e/files
F:     /usr/lib/x86_64-linux-gnu/GL/default
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.freedesktop.Platform.GL.default/x86_64/23.08-extra/0ebaef70a4bf093d8c78a2a4d1f8ff22f74a5edd59f24c8518506f63d04a21ce/files
F:     /usr/lib/x86_64-linux-gnu/GL/default
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.freedesktop.Platform.VAAPI.Intel/x86_64/23.08/c3545bf23b827640fc8a1464d87aa26c5ad99d5d901e07611b916e7374bcd851/files
F:     /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.freedesktop.Platform.openh264/x86_64/2.4.1/50b21d3fc221e861a8573f642bd3e582453b68c8be9962614461ee4d1b0ea38e/files
F:     /usr/lib/x86_64-linux-gnu/openh264
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform.Locale/x86_64/46/996902454591e18f60e392708b4ddb805be8aacc3d2b6de60c38f9f3097b92ed-en/files
F:     /usr/share/runtime/locale
F:     --ro-bind-data
F:     19
F:     /run/flatpak/ld.so.conf.d/runtime-001-org.freedesktop.Platform.GL.default.conf
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vulkan/icd.d/intel_hasvk_icd.x86_64.json
F:     /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/intel_hasvk_icd.x86_64.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vulkan/icd.d/intel_icd.x86_64.json
F:     /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/intel_icd.x86_64.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vulkan/icd.d/lvp_icd.x86_64.json
F:     /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/lvp_icd.x86_64.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vulkan/icd.d/radeon_icd.x86_64.json
F:     /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/radeon_icd.x86_64.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vulkan/icd.d/virtio_icd.x86_64.json
F:     /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/virtio_icd.x86_64.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/glvnd/egl_vendor.d/50_mesa.json
F:     /usr/lib/x86_64-linux-gnu/GL/glvnd/egl_vendor.d/50_mesa.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/OpenCL/vendors/mesa.icd
F:     /usr/lib/x86_64-linux-gnu/GL/OpenCL/vendors/mesa.icd
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/OpenCL/vendors/rusticl.icd
F:     /usr/lib/x86_64-linux-gnu/GL/OpenCL/vendors/rusticl.icd
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/crocus_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/crocus_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/i915_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/i915_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/iris_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/iris_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/kms_swrast_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/kms_swrast_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/libgallium_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/libgallium_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/libgallium_drv_video.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/libgallium_drv_video.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/nouveau_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/nouveau_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/nouveau_drv_video.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/nouveau_drv_video.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/r300_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/r300_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/r600_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/r600_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/r600_drv_video.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/r600_drv_video.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/radeonsi_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/radeonsi_drv_video.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/radeonsi_drv_video.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/swrast_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/swrast_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/virtio_gpu_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/virtio_gpu_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/virtio_gpu_drv_video.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/virtio_gpu_drv_video.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/vmwgfx_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/vmwgfx_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/dri/zink_dri.so
F:     /usr/lib/x86_64-linux-gnu/GL/lib/dri/zink_dri.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/d3d/d3dadapter9.so.1
F:     /usr/lib/x86_64-linux-gnu/GL/lib/d3d/d3dadapter9.so.1
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/lib/d3d/d3dadapter9.so.1.0.0
F:     /usr/lib/x86_64-linux-gnu/GL/lib/d3d/d3dadapter9.so.1.0.0
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vulkan/explicit_layer.d/VkLayer_MESA_overlay.json
F:     /usr/lib/x86_64-linux-gnu/GL/vulkan/explicit_layer.d/VkLayer_MESA_overlay.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vulkan/implicit_layer.d/VkLayer_MESA_device_select.json
F:     /usr/lib/x86_64-linux-gnu/GL/vulkan/implicit_layer.d/VkLayer_MESA_device_select.json
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_gallium.so.1.0.0
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_gallium.so.1.0.0
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_nouveau.so
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_nouveau.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_nouveau.so.1
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_nouveau.so.1
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_nouveau.so.1.0
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_nouveau.so.1.0
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_nouveau.so.1.0.0
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_nouveau.so.1.0.0
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_r600.so
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_r600.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_r600.so.1
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_r600.so.1
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_r600.so.1.0
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_r600.so.1.0
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_r600.so.1.0.0
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_r600.so.1.0.0
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_radeonsi.so
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_radeonsi.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_radeonsi.so.1
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_radeonsi.so.1
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_radeonsi.so.1.0
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_radeonsi.so.1.0
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_radeonsi.so.1.0.0
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_radeonsi.so.1.0.0
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_trace.so
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_trace.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_trace.so.1
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_trace.so.1
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_trace.so.1.0.0
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_trace.so.1.0.0
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_virtio_gpu.so
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_virtio_gpu.so
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_virtio_gpu.so.1
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_virtio_gpu.so.1
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_virtio_gpu.so.1.0
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_virtio_gpu.so.1.0
F:     --symlink
F:     /usr/lib/x86_64-linux-gnu/GL/default/vdpau/libvdpau_virtio_gpu.so.1.0.0
F:     /usr/lib/x86_64-linux-gnu/GL/vdpau/libvdpau_virtio_gpu.so.1.0.0
F:     --ro-bind-data
F:     20
F:     /run/flatpak/ld.so.conf.d/runtime-002-org.freedesktop.Platform.VAAPI.Intel.conf
F:     --ro-bind-data
F:     21
F:     /run/flatpak/ld.so.conf.d/runtime-003-org.freedesktop.Platform.openh264.conf
F:     --ro-bind-data
F:     22
F:     /run/flatpak/ld.so.conf.d/runtime-004-org.freedesktop.Platform.GL.default.conf
F:     --unshare-user
F:     --disable-userns
F:     --proc
F:     /proc
F:     --unshare-pid
F:     --dir
F:     /tmp
F:     --dir
F:     /var/tmp
F:     --dir
F:     /run/host
F:     --perms
F:     0700
F:     --dir
F:     /run/user/0
F:     --setenv
F:     XDG_RUNTIME_DIR
F:     /run/user/0
F:     --symlink
F:     ../run
F:     /var/run
F:     --ro-bind
F:     /sys/block
F:     /sys/block
F:     --ro-bind
F:     /sys/bus
F:     /sys/bus
F:     --ro-bind
F:     /sys/class
F:     /sys/class
F:     --ro-bind
F:     /sys/dev
F:     /sys/dev
F:     --ro-bind
F:     /sys/devices
F:     /sys/devices
F:     --ro-bind-try
F:     /proc/self/ns/user
F:     /run/.userns
F:     --symlink
F:     /etc/timezone
F:     /var/db/zoneinfo
F:     --ro-bind-data
F:     24
F:     /etc/passwd
F:     --ro-bind-data
F:     25
F:     /etc/group
F:     --ro-bind-data
F:     26
F:     /etc/pkcs11/pkcs11.conf
F:     --ro-bind
F:     /etc/machine-id
F:     /etc/machine-id
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/appstream.conf
F:     /etc/appstream.conf
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/e2scrub.conf
F:     /etc/e2scrub.conf
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/issue
F:     /etc/issue
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/issue.net
F:     /etc/issue.net
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/ld.so.conf
F:     /etc/ld.so.conf
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/mke2fs.conf
F:     /etc/mke2fs.conf
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/moduli
F:     /etc/moduli
F:     --symlink
F:     ../../proc/self/mounts
F:     /etc/mtab
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/nsswitch.conf
F:     /etc/nsswitch.conf
F:     --symlink
F:     ../usr/lib/os-release
F:     /etc/os-release
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/protocols
F:     /etc/protocols
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/rc_maps.cfg
F:     /etc/rc_maps.cfg
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/rpc
F:     /etc/rpc
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/services
F:     /etc/services
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/ssh_config
F:     /etc/ssh_config
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/vdpau_wrapper.cfg
F:     /etc/vdpau_wrapper.cfg
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/xattr.conf
F:     /etc/xattr.conf
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/alsa
F:     /etc/alsa
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/dbus-1
F:     /etc/dbus-1
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/debuginfod
F:     /etc/debuginfod
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/fonts
F:     /etc/fonts
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/gss
F:     /etc/gss
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/gtk-3.0
F:     /etc/gtk-3.0
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/pki
F:     /etc/pki
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/profile.d
F:     /etc/profile.d
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/pulse
F:     /etc/pulse
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/rc_keymaps
F:     /etc/rc_keymaps
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/security
F:     /etc/security
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/ssl
F:     /etc/ssl
F:     --ro-bind
F:     /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/46/3bf66877ef1d26e24e3d3eb92e5ac2cda7d286cebe7c479c307a4370ab7b443e/files/etc/xdg
F:     /etc/xdg
F:     --bind
F:     /root/.var/app/org.gnome.baobab/cache
F:     /var/cache
F:     --bind
F:     /root/.var/app/org.gnome.baobab/data
F:     /var/data
F:     --bind
F:     /root/.var/app/org.gnome.baobab/config
F:     /var/config
F:     --bind
F:     /root/.var/app/org.gnome.baobab/cache/tmp
F:     /var/tmp
F:     --symlink
F:     usr/bin
F:     /bin
F:     --symlink
F:     usr/lib
F:     /lib
F:     --symlink
F:     usr/lib64
F:     /lib64
F:     --symlink
F:     usr/sbin
F:     /sbin
F:     --ro-bind
F:     /usr/share/zoneinfo
F:     /usr/share/zoneinfo
F:     --symlink
F:     ../usr/share/zoneinfo/Europe/Berlin
F:     /etc/localtime
F:     --ro-bind-data
F:     27
F:     /etc/timezone
F:     --seccomp
F:     28
F:     --ro-bind
F:     /etc/resolv.conf
F:     /etc/resolv.conf
F:     --ro-bind
F:     /etc/host.conf
F:     /etc/host.conf
F:     --ro-bind
F:     /etc/hosts
F:     /etc/hosts
F:     --ro-bind-data
F:     29
F:     /etc/ld.so.conf
F:     --ro-bind-data
F:     23
F:     /etc/ld.so.cache
F:     --ro-bind
F:     /var/roothome/.cache/.flatpak/1314154979
F:     /run/flatpak/.flatpak/1314154979
F:     --lock-file
F:     /run/flatpak/.flatpak/1314154979/.ref
F:     --perms
F:     0600
F:     --file
F:     31
F:     /.flatpak-info
F:     --ro-bind-data
F:     32
F:     /.flatpak-info
F:     --setenv
F:     container
F:     flatpak
F:     --ro-bind-data
F:     33
F:     /run/host/container-manager
F:     --info-fd
F:     34
F:     --bind
F:     /var/roothome/.cache/.flatpak/org.gnome.baobab/xdg-run
F:     /run/user/0
F:     --unshare-net
F:     --dev
F:     /dev
F:     --dev-bind
F:     /dev/dri
F:     /dev/dri
F:     --bind
F:     /var/roothome/.cache/.flatpak/org.gnome.baobab/tmp
F:     /tmp
F:     --bind
F:     /var/roothome/.cache/app/org.gnome.baobab
F:     /run/flatpak/app/org.gnome.baobab
F:     --symlink
F:     var/home
F:     /home
F:     --symlink
F:     run/media
F:     /media
F:     --symlink
F:     var/mnt
F:     /mnt
F:     --symlink
F:     var/opt
F:     /opt
F:     --symlink
F:     sysroot/ostree
F:     /ostree
F:     --symlink
F:     var/roothome
F:     /root
F:     --bind
F:     /run/media
F:     /run/media
F:     --symlink
F:     var/srv
F:     /srv
F:     --bind
F:     /sysroot
F:     /sysroot
F:     --bind
F:     /sysroot/ostree
F:     /sysroot/ostree
F:     --bind
F:     /var/home
F:     /var/home
F:     --bind
F:     /var/mnt
F:     /var/mnt
F:     --bind
F:     /var/opt
F:     /var/opt
F:     --dir
F:     /var/roothome
F:     --dir
F:     /var/roothome/.local/share/flatpak
F:     --bind
F:     /var/roothome/.var/app
F:     /var/roothome/.var/app
F:     --bind
F:     /var/roothome/.var/app/org.gnome.baobab
F:     /var/roothome/.var/app/org.gnome.baobab
F:     --bind
F:     /var/srv
F:     /var/srv
F:     --bind
F:     /usr
F:     /run/host/usr
F:     --bind
F:     /var/usrlocal
F:     /run/host/var/usrlocal
F:     --symlink
F:     usr/bin
F:     /run/host/bin
F:     --symlink
F:     usr/lib
F:     /run/host/lib
F:     --symlink
F:     usr/lib64
F:     /run/host/lib64
F:     --symlink
F:     usr/sbin
F:     /run/host/sbin
F:     --bind
F:     /etc
F:     /run/host/etc
F:     --ro-bind
F:     /etc/os-release
F:     /run/host/os-release
F:     --tmpfs
F:     /tmp/.X11-unix
F:     --ro-bind
F:     /tmp/.X11-unix/X0
F:     /tmp/.X11-unix/X0
F:     --ro-bind-data
F:     37
F:     /run/flatpak/Xauthority
F:     --ro-bind
F:     /var/roothome/.cache/.dbus-proxy/system-bus-proxy-CS5SN2
F:     /run/dbus/system_bus_socket
F:     --sync-fd
F:     38
F:     --ro-bind
F:     /var/roothome/.cache/.flatpak/org.gnome.baobab/.ref
F:     /run/flatpak/per-app-dirs-ref
F:     --lock-file
F:     /run/flatpak/per-app-dirs-ref
F:     --ro-bind
F:     /run/systemd/journal/socket
F:     /run/systemd/journal/socket
F:     --ro-bind
F:     /run/systemd/journal/stdout
F:     /run/systemd/journal/stdout
F:     --ro-bind
F:     /usr/share/fonts
F:     /run/host/fonts
F:     --ro-bind
F:     /usr/lib/fontconfig/cache
F:     /run/host/fonts-cache
F:     --tmpfs
F:     /run/host/user-fonts-cache
F:     --remount-ro
F:     /run/host/user-fonts-cache
F:     --ro-bind-data
F:     36
F:     /run/host/font-dirs.xml
F:     --ro-bind
F:     /usr/share/icons
F:     /run/host/share/icons
F:     --symlink
F:     /app/lib/debug/source
F:     /run/build
F:     --symlink
F:     /usr/lib/debug/source
F:     /run/build-runtime
F:     --setenv
F:     ALSA_CONFIG_DIR
F:     /usr/share/alsa
F:     --setenv
F:     ALSA_CONFIG_PATH
F:     /usr/share/alsa/alsa-flatpak.conf
F:     --setenv
F:     COLORTERM
F:     truecolor
F:     --setenv
F:     DBUS_SYSTEM_BUS_ADDRESS
F:     unix:path=/run/dbus/system_bus_socket
F:     --setenv
F:     DEBUGINFOD_URLS
F:     'https://debuginfod.fedoraproject.org/ '
F:     --setenv
F:     DISPLAY
F:     :0
F:     --setenv
F:     EDITOR
F:     /usr/bin/nano
F:     --setenv
F:     FLATPAK_ID
F:     org.gnome.baobab
F:     --setenv
F:     FLATPAK_SANDBOX_DIR
F:     /root/.var/app/org.gnome.baobab/sandbox
F:     --setenv
F:     GI_TYPELIB_PATH
F:     /app/lib/girepository-1.0
F:     --setenv
F:     GST_PLUGIN_SYSTEM_PATH
F:     /app/lib/gstreamer-1.0:/usr/lib/extensions/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0
F:     --setenv
F:     HISTCONTROL
F:     ignoredups
F:     --setenv
F:     HISTSIZE
F:     1000
F:     --setenv
F:     HOME
F:     /root
F:     --setenv
F:     HOSTNAME
F:     v
F:     --setenv
F:     LANG
F:     en_US.UTF-8
F:     --setenv
F:     LD_LIBRARY_PATH
F:     ''
F:     --setenv
F:     LESSOPEN
F:     '||/usr/bin/lesspipe.sh %s'
F:     --setenv
F:     LOGNAME
F:     root
F:     --setenv
F:     LS_COLORS
F:     'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;37;41:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:'
F:     --setenv
F:     MAIL
F:     /var/spool/mail/root
F:     --setenv
F:     PATH
F:     /app/bin:/usr/bin
F:     --setenv
F:     PS1
F:     '[📦 $FLATPAK_ID \W]\$ '
F:     --setenv
F:     PWD
F:     /root
F:     --setenv
F:     PYTHONUSERBASE
F:     /var/data/python
F:     --setenv
F:     SHELL
F:     /bin/sh
F:     --setenv
F:     SHLVL
F:     1
F:     --setenv
F:     SSH_ASKPASS
F:     /usr/libexec/openssh/gnome-ssh-askpass
F:     --setenv
F:     SUDO_COMMAND
F:     /bin/bash
F:     --setenv
F:     SUDO_GID
F:     1000
F:     --setenv
F:     SUDO_UID
F:     1000
F:     --setenv
F:     SUDO_USER
F:     v
F:     --setenv
F:     TERM
F:     xterm-256color
F:     --setenv
F:     USER
F:     root
F:     --setenv
F:     USERNAME
F:     v
F:     --setenv
F:     XAUTHORITY
F:     /run/flatpak/Xauthority
F:     --setenv
F:     XDG_CACHE_HOME
F:     /root/.var/app/org.gnome.baobab/cache
F:     --setenv
F:     XDG_CONFIG_DIRS
F:     /app/etc/xdg:/etc/xdg
F:     --setenv
F:     XDG_CONFIG_HOME
F:     /root/.var/app/org.gnome.baobab/config
F:     --setenv
F:     XDG_DATA_DIRS
F:     /app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share
F:     --setenv
F:     XDG_DATA_HOME
F:     /root/.var/app/org.gnome.baobab/data
F:     --setenv
F:     XDG_STATE_HOME
F:     /root/.var/app/org.gnome.baobab/.local/state
F:     --setenv
F:     _
F:     /usr/bin/flatpak
F:     --setenv
F:     __EGL_EXTERNAL_PLATFORM_CONFIG_DIRS
F:     /etc/egl/egl_external_platform.d:/usr/lib/x86_64-linux-gnu/GL/egl/egl_external_platform.d:/usr/share/egl/egl_external_platform.d
F: Running '/usr/bin/bwrap --args 39 -- baobab'

(baobab:2): Gtk-WARNING **: 14:20:58.368: Failed to open display

Note that it's sometimes necessary to run baobab as root in order to read folders with restricted permissions.

@v217
Copy link

v217 commented May 12, 2024

In the near future, will it be recommended to use run0 flatpak run ?
Thanks

@smcv
Copy link
Collaborator

smcv commented May 13, 2024

In the near future, will it be recommended to use run0 flatpak run ? Thanks

I doubt it. Flatpak apps are meant to be less privileged than your normal session, so anything analogous to sudo seems very unwise.

@smcv
Copy link
Collaborator

smcv commented May 13, 2024

Note that it's sometimes necessary to run baobab as root in order to read folders with restricted permissions.

Please consider using something like GNOME gvfs's admin:https:// to run the GUI as an ordinary user, while accessing the filesystem as root. Or if you really need to run a GUI as root, I would suggest a traditional distro package like .deb, .rpm or your distro's equivalent (a non-Flatpak version). Flatpak is not designed for this use-case.

@v217
Copy link

v217 commented May 13, 2024

GNOME gvfs's admin:https://

Thanks a lot for this advice! This solves all my problems!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants