Forum / NoMachine for Linux / Weird issue with flatpak, Mint 21.3, virtual framebuffer
Tagged: flatpak acl mint
- This topic has 4 replies, 2 voices, and was last updated 3 weeks, 6 days ago by
dantahoua.
-
AuthorPosts
-
February 18, 2025 at 17:59 #51862
dantahoua
ParticipantHello.
I used with success the virtual framabuffer method to connect to my headless machine (virtual framebuffer).
But since, all my flatpak apps disappeared from the Mint menu. If I launch one manually, the app is working but the icon is not the good one. Also if I want to install or update anything from flatpak, I have to enter my password at least 3 times!Seems a simple user right problem but I cannot find it…
February 24, 2025 at 20:50 #51909dantahoua
ParticipantI think it’s a environment variabnle problem, but can’t find how to resolve it.
If I run a flatpak app with command ilne, I have:
flatpak run com.github.tchx84.Flatseal
Note that the directories
‘/var/lib/flatpak/exports/share’
‘/home/userv/.local/share/flatpak/exports/share’
are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.Can anyonehelp me?
February 24, 2025 at 21:24 #51910dantahoua
ParticipantOk, further research point that the virtual NoMachine X server do not take any of the “/etc/X11/Xsession.d/” into account…
February 25, 2025 at 11:43 #51924Britgirl
KeymasterIt looks like flatpak applications don’t work correctly on virtual display sessions. We are not able to reproduce all the problems. In our tests apps are listed, but it could be related to your desktop environment. We tested with Cinnamon. Apps can be started, but indeed it asks for auth many times during installation.
But the same problem occurs when installing even through SSH remote connections. There is even a bug report: https://github.com/flatpak/flatpak/issues/3001. So it’s not NoMachine related.
The workaround is to edit policy file:
/var/lib/polkit-1/localauthority/10-vendor.d/org.freedesktop.Flatpak.pkla
and add there
ResultAny=yes to section with: org.freedesktop.Flatpak.modify-repo
so the file should look like this:
$ sudo cat /var/lib/polkit-1/localauthority/10-vendor.d/org.freedesktop.Flatpak.pkla [Install Flatpak apps and runtimes] Identity=unix-group:sudo Action=org.freedesktop.Flatpak.app-install;org.freedesktop.Flatpak.runtime-install;org.freedesktop.Flatpak.app-uninstall;org.freedesktop.Flatpak.runtime-uninstall;org.freedesktop.Flatpak.modify-repo; ResultActive=yes ResultAny=yes [Override parental controls for Flatpak apps] Identity=unix-user:* Action=org.freedesktop.Flatpak.override-parental-controls ResultAny=auth_admin ResultActive=auth_admin ResultInactive=auth_admin
February 25, 2025 at 16:09 #51929dantahoua
ParticipantOh thanks a lot! I knew it was just a small thing to add somewhere! Now everything works great! Many many many thanks! 🙂
-
AuthorPosts
You must be logged in to reply to this topic. Please login here.