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 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 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
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.
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:
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/.
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…