General Flatpak Mess

I’m kind of a newbie when it comes to Flatpak on Wayland. Just starting with them on Plasma 6 while I had had no similar issues on my 5.27.12 system with X11 so far.

Ok here the main issues:

  • Cursor was wrong (solved by copying /usr/share/icons to /home/$USER/.icons/) as it was mentioned at the very bottom of the Cursor issues section in the Arch Wiki https://wiki.archlinux.org/title/Flatpak under 5.7

Before I had also tried this, but to no avail:
$ flatpak -u override --filesystem=/usr/share/icons/:ro
$ flatpak -u override --filesystem=/home/$USER/.icons/:ro
$ flatpak -u override --filesystem=xdg-config/gtk-3.0:ro
$ flatpak -u override --env=XCURSOR_PATH=~/.icons
I was unsure how I could undo it so I wanted to start from scratch and removed all flatpaks and their data, later removed Flatpak with Pacman and even deleted the /var/lib/flatpak directory
I did not do any further modifications.

  • Flatpaks Floorp and Librewolf do not start on Wayland. They start once after a reboot, but once closed, not a second time. They do start on X11 but then my cursor is flickering, even when I am not hovering over the flatpak guis and when they are closed. Besides that I wanted to have X11 only as a backup or if I need Onboard for some teaching reasons.
  • Now after my reinstall of Flatpak and removal of /var/lib/flatpak, there is no menu entry for the applications.
    I can search>find them in the Appl. Launcher, but when I click Edit to look for the run command, everything is empty so I can not try from console to find error message (which are most likely: can not connect to Wayland portal, or similar.)

(Flatseal is installed, everything looks well set up when I looked up options mentioned in the AW Flatpak troubleshooting section)

(I was looking for an alternative for Librewolf’s installation and went for the AUR librewolf NON-bin which took me 3 hours on my i3 of compiling with a few error messages “deprecated” with a final system hang :smiley: but this is besides and offtopic).

What can I do to get usable browser flatpaks Floorp/Librewolf? Floorp I had had the non-starting issues from the beginning without any modification (1st start was always possible, 2nd and … not. Did not bother me much/realize it as I was only occasionally using it)

I just tested both the floorp and librewolf flatpaks on plasma 6 under wayland.

They both open initially and on subsequent attempts.

I wonder if your flatpak environment is a mess at this point?

Have you tried running them from the terminal with flatpak run to see if there are any errors displayed there?

1 Like

I have and I believe it was similar to this. ( Failed to connect to Wayland display: No such file or directory)

This was before my flatpak-reinstall and right now I can not get to the run commands in Application Launcher. Where can I look them up elsewhere, respectively, what are they for you?

Do this in a terminal: flatpak list. Get the Application ID and after that:
flatpak run "Application ID"
For example for Librewolf: flatpak run io.gitlab.librewolf-community

Summary
$ flatpak list
Name                                           Application ID                                Version                          Branch             Installation
Space Cadet Pinball                            com.github.k4zmu2a.spacecadetpinball          2.1.0                            stable             system
Flatseal                                       com.github.tchx84.Flatseal                    2.3.0                            stable             system
LibreWolf                                      io.gitlab.librewolf-community                 136.0-2                          stable             system
Floorp                                         one.ablaze.floorp                             11.24.0                          stable             system
Freedesktop Platform                           org.freedesktop.Platform                      freedesktop-sdk-24.08.14         24.08              system
Mesa                                           org.freedesktop.Platform.GL.default           24.3.4                           24.08              system
Mesa (Extra)                                   org.freedesktop.Platform.GL.default           24.3.4                           24.08extra         system
FFmpeg extension with extra codecs             org.freedesktop.Platform.ffmpeg-full                                           24.08              system
openh264                                       org.freedesktop.Platform.openh264             2.4.1                            2.4.1              system
GNOME Application Platform version 47          org.gnome.Platform                                                             47                 system
Breeze GTK theme                               org.gtk.Gtk3theme.Breeze                      6.3.2                            3.22               system



$ flatpak run one.ablaze.floorp
F: Not sharing "/usr/share/icons" with sandbox: Path "/usr" is reserved by Flatpak
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Error: ConnectToCompositor() connect() failed repeatedly : Resource temporarily unavailable
Error: we don't have any display, WAYLAND_DISPLAY='wayland-0' DISPLAY='(null)'



$ flatpak run io.gitlab.librewolf-community   
F: Not sharing "/usr/share/icons" with sandbox: Path "/usr" is reserved by Flatpak
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Warning: ConnectToCompositor() try again : Resource temporarily unavailable
Error: ConnectToCompositor() connect() failed repeatedly : Resource temporarily unavailable
Error: ProxiedConnection::Process(): Failed to connect to compositor
 : Resource temporarily unavailable
Error: we don't have any display, WAYLAND_DISPLAY='wayland-0' DISPLAY='(null)'

Thank you, getting these command line messages helped me open LW and Floorp each time. I added MOZ_DISABLE_WAYLAND_PROXY=1 in both browsers under environment > variables.

:slight_smile:

Now I still have to clean up my mess, I think in 2 parts.

A. Flatpaks are not in my Plasma applications menu (though they can be manually searched and found with empty properties). Most likely due to me rm -rf’ing /var/lib/flatpak? > If so, can I get to files and folders back to a virginal state? Like from the iso or so?

Arch wiki mentions about it:

Flatpak expects window managers to respect the XDG_DATA_DIRS environment variable to discover applications. This variable is set by the script /etc/profile.d/flatpak.sh. Updating the environment may require restarting the session. If the launcher does not support XDG_DATA_DIRS, you can edit the list of directories scanned and add these to it:

~/.local/share/flatpak/exports/share/applications /var/lib/flatpak/exports/share/applications

My file kwrite /etc/profile.d/flatpak.sh
looks like this:

if command -v flatpak > /dev/null; then
    # set XDG_DATA_DIRS to include Flatpak installations

    new_dirs=$(
        (
            unset G_MESSAGES_DEBUG
            echo "${XDG_DATA_HOME:-"$HOME/.local/share"}/flatpak"
            GIO_USE_VFS=local flatpak --installations
        ) | (
            new_dirs=
            while read -r install_path
            do
                share_path=$install_path/exports/share
                case ":$XDG_DATA_DIRS:" in
                    (*":$share_path:"*) :;;
                    (*":$share_path/:"*) :;;
                    (*) new_dirs=${new_dirs:+${new_dirs}:}$share_path;;
                esac
            done
            echo "$new_dirs"
        )
    )

    export XDG_DATA_DIRS
    XDG_DATA_DIRS="${new_dirs:+${new_dirs}:}${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"

    unset new_dirs
fi

Where do I have to put the two lines above?

B. I have the wrong icon in LibreWolf in the top left of my Breeze styled window. It is the "W"ayland logo instead of the howling wolf. From terminal I get F: Not sharing "/usr/share/icons" with sandbox: Path "/usr" is reserved by Flatpak

xdg-desktop-portal is installed. I already copied /usr/share/icons to /home/$USER/.icons/.

Have you tried running kbuildsycoca6

Now, I have. kbuildsycoca6 kbuildsycoca6 running...
Rebooted, reinstalled LW, rebooted. After none of these steps, the menu entries or the correct top-left window icon reappeared…

I’ll just try to use Timeshift on this

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.