Fedora 35 beta - Flatpak applications not seen

So I am testing Fedora 35 beta Plasma edition and am attempting to install my usual flatpak applications. I have an ansible config file I use for installing and configuring everything at first setup. After attempting to install my applications via ansible I see none of my applications installed.
I have run into this issue before in Fedora Gnome, not with ansible but with flatpak, in which I install an application via flatpak and the icon doesn’t appear in the launch menu to launch the application (vscode, for example).
Why does this happen in flatpak?
I can run flatpak list and I see my applications but none appear in KDE menu for launching.
Here is the section of my ansible file:

   - name: Add flathub repo
      become: yes
      community.general.flatpak_remote:
        name: flathub
        state: present
        flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
        method: user

    - name: Install MakeMKV
      become: yes
      flatpak:
        name: com.makemkv.MakeMKV
        state: present 
        method: user

    - name: Install Handbrake
      become: yes
      flatpak:
        name: fr.handbrake.ghb
        state: present
        method: user

    - name: Install Signal
      become: yes
      flatpak:
        name: org.signal.Signal
        state: present
        method: user

    - name: Install Telegram
      become: yes
      flatpak:
        name: org.telegram.desktop
        state: present
        method: user

    - name: Install Discord
      become: yes
      flatpak: 
        name: com.discordapp.Discord
        state: present
        method: user

    - name: Install OnlyOffice 
      become: yes
      flatpak:
        name: org.onlyoffice
        state: present
        method: user

    - name: Install VSCode 
      become: yes
      flatpak:
        name: com.visualstudio.code
        state: present
        method: user

Here is some info I see in flatpak:

[ed@localhost-live: ~]$ sudo flatpak remotes
Name    Options
fedora  system,oci
flathub user
[ed@localhost-live: ~]$ sudo flatpak list
Name                                          Application ID                               Version         Branch        Installation
Discord                                       com.discordapp.Discord                       0.0.16          stable        user
MakeMKV                                       com.makemkv.MakeMKV                          1.16.4          stable        user
Visual Studio Code                            com.visualstudio.code                        1.60.2          stable        user
HandBrake                                     fr.handbrake.ghb                             1.4.2           stable        user
Freedesktop Platform                          org.freedesktop.Platform                     20.08.15        20.08         user
Freedesktop Platform                          org.freedesktop.Platform                     21.08.4         21.08         user
Mesa                                          org.freedesktop.Platform.GL.default          21.1.7          20.08         user
Mesa                                          org.freedesktop.Platform.GL.default          21.2.2          21.08         user
ffmpeg-full                                   org.freedesktop.Platform.ffmpeg-full                         21.08         user
openh264                                      org.freedesktop.Platform.openh264            2.1.0           2.0           user
Freedesktop SDK                               org.freedesktop.Sdk                          21.08.4         21.08         user
GNOME Application Platform version 40         org.gnome.Platform                                           40            user
Adwaita theme                                 org.kde.KStyle.Adwaita                                       5.15          user
KDE Application Platform                      org.kde.Platform                                             5.15          user
ONLYOFFICE Desktop Editors                    org.onlyoffice.desktopeditors                6.3.1           stable        user
Signal Desktop                                org.signal.Signal                            5.21.0          stable        user
Telegram Desktop                              org.telegram.desktop                         3.1.9           stable        user

I don’t believe this is a Fedora 35 beta issue but a behavior of flatpak that I have seen and in the past and have not found a solution. My hope is that when Fedora 35 Plasma is released that I can just jump right in with my ansible file, run it, and all is well.

Also, other questions about Fedora: Is there a reason ansible doesn’t come preinstalled? And, why does Fedora 35 repos still have an older version of ansible (2.9 vs current 2.11)?
Thanks!

Can you check echo $XDG_DATA_DIRS

it should include
/var/lib/flatpak/exports/share
and
/home/$USER/.local/share/flatpak/exports

Are you running fish? Missing paths in $XDG_DATA_DIRS? (Xfce)

[ed@fedora: ~]$ echo $XDG_DATA_DIRS
/home/ed/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share

Looking in those directories, the exports directory doesn’t exist.

[ed@fedora: ~]$ ls -l /var/lib/flatpak/
total 0
drwxr-xr-x  1 root root 12 Oct 26 04:34 appstream
drwxr-xr-x  1 root root 58 Oct 26 04:34 oci
drwxr-xr-x. 1 root root 70 Oct 26 03:54 repo

My local doesn’t even have the flatpak directory.

[ed@fedora: ~]$ ls -l .local/share/
total 20
drwxr-xr-x. 1 ed ed  250 Oct 26 05:31 akonadi
drwxr-xr-x. 1 ed ed  100 Oct 26 03:55 akonadi_migration_agent
drwxr-xr-x. 1 ed ed   20 Oct 26 03:55 apps
drwxr-xr-x. 1 ed ed   30 Oct 26 05:31 baloo
drwxr-xr-x. 1 ed ed   36 Oct 26 03:55 contacts
drwxr-xr-x. 1 ed ed   30 Oct 26 04:00 dolphin
drwxr-xr-x. 1 ed ed    0 Oct 26 04:21 icc
drwxr-xr-x. 1 ed ed   18 Oct 26 03:54 kactivitymanagerd
drwxr-xr-x  1 ed ed    0 Oct 26 04:34 kcookiejar
drwxr-xr-x. 1 ed ed   16 Oct 26 04:21 kded5
drwxr-xr-x. 1 ed ed   24 Oct 26 05:31 klipper
drwxr-xr-x. 1 ed ed    0 Oct 26 03:55 konsole
drwxr-xr-x. 1 ed ed   78 Oct 26 04:21 kscreen
drwxr-xr-x. 1 ed ed   54 Oct 26 05:31 kwalletd
drwxr-xr-x. 1 ed ed   34 Oct 26 04:01 kxmlgui5
drwxr-xr-x. 1 ed ed   48 Oct 26 03:55 local-mail
drwxr-xr-x. 1 ed ed   48 Oct 26 04:01 RecentDocuments
-rw-------. 1 ed ed  740 Oct 26 04:00 recently-used.xbel
drwxr-xr-x. 1 ed ed   18 Oct 26 04:00 Trash
-rw-r--r--. 1 ed ed 5723 Oct 26 04:00 user-places.xbel
-rw-r--r--. 1 ed ed 4367 Oct 26 04:00 user-places.xbel.bak
-rw-r--r--. 1 ed ed    0 Oct 26 04:00 user-places.xbel.tbcache

I am not using fish.

It not depends on fish, the problem is that the terminal has to be configured as “run command as login shell”
This you have to activate in the settings of your gnome terminal. Then Ansible will see the missing part, while reading “/etc/profile.d”.

I fixed it. @grumpey pushed me in the right direction to look. I found that since my ansible had become: yes it was installing all my flatpak apps as root and was only visible by the root profile. Changing every flatpak section, including adding the repo, to become: no allowed me to see and launch the applications.

1 Like