Weird issue with flatpak, Mint 21.3, virtual framebuffer

Forum / NoMachine for Linux / Weird issue with flatpak, Mint 21.3, virtual framebuffer

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #51862
    dantahoua
    Participant

    Hello.

    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…

    #51909
    dantahoua
    Participant

    I 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?

    #51910
    dantahoua
    Participant

    Ok, further research point that the virtual NoMachine X server do not take any of the “/etc/X11/Xsession.d/” into account…

    #51924
    Britgirl
    Keymaster

    It 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
    #51929
    dantahoua
    Participant

    Oh thanks a lot! I knew it was just a small thing to add somewhere! Now everything works great! Many many many thanks! 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Please login .