Flatpak apps not visible in Application launcher (KDE)

Hi,
I can’t search or launch any flatpaks from the Application Launcher. I can search and launch them via Alt+F2. This happens with both Latte-dock and the default panel. I have rebooted after installing the flatpaks.
What could be the issue here?
Thanks.

This might be related:

pekka@BIGIRON ~> flatpak update 

Note that the directories  

'/var/lib/flatpak/exports/share' 
'/home/pekka/.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. 

Looking for updates? 
Nothing to do.



I assume the XDG_DATA_DIRS variable, whatever that may be, isn’t updated on restarting the session.

“echo $XDG_DATA_DIRS” doesn’t return anything.

Continuing my quest into the land of flat apps, I came upon the following:

pekka@BIGIRON ~> flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo 

Note that the directories  

'/var/lib/flatpak/exports/share' 
'/home/pekka/.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. 

**error: **Flatpak system operation ConfigureRemote not allowed for user



I think there might be something weird here, I’m not sure it should require sudo to add a repo? And certainly not to install software:

pekka@BIGIRON ~> flatpak install spotify 

Note that the directories  

'/var/lib/flatpak/exports/share' 
'/home/pekka/.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. 

Looking for matches? 
Found similar ref(s) for ?spotify? in remote ?flathub? (system). 
Use this remote? [Y/n]: y 
Found ref ?app/com.spotify.Client/x86_64/stable? in remote ?flathub? (system). 
Use this ref? [Y/n]: y 
Required runtime for com.spotify.Client/x86_64/stable (runtime/org.freedesktop.Platform/x86_64/20.08) found in remote flathub 
Do you want to install it? [Y/n]: y 

com.spotify.Client permissions: 
    ipc     network     pulseaudio     x11     dri     file access [1]     dbus access [2]     bus ownership [3]     tags [4] 

    [1] xdg-music:ro, xdg-pictures:ro 
    [2] org.freedesktop.Notifications, org.gnome.SessionManager, org.gnome.SettingsDaemon 
    [3] org.mpris.MediaPlayer2.spotify 
    [4] proprietary 


**        ID                                              Branch            Op           Remote            Download** 
 1. ?] org.freedesktop.Platform.GL.default             20.08             i            flathub               1.0?kB / 41.5?MB 
 2. ?] org.freedesktop.Platform.Locale                 20.08             i            flathub               1.0?kB / 322.0?MB 
 3. ?] org.freedesktop.Platform.VAAPI.Intel            20.08             i            flathub               1.0?kB / 11.2?MB 
 4. ?] org.freedesktop.Platform.openh264               2.0               i            flathub               1.2?MB / 1.5?MB 
 5. ?] org.gtk.Gtk3theme.Breeze                        3.22              i            flathub             184.7?kB / 230.0?kB 
 6. ?] org.freedesktop.Platform                        20.08             i            flathub             221.4?MB / 266.5?MB 
 7.  ] com.spotify.Client                              stable            i            flathub           < 138.2?MB 

Warning: Flatpak system operation Deploy not allowed for user 
Warning: Flatpak system operation Deploy not allowed for user 
Warning: Flatpak system operation Deploy not allowed for user 
Warning: Flatpak system operation Deploy not allowed for user 
Warning: Flatpak system operation Deploy not allowed for user 
Error: Flatpak system operation Deploy not allowed for user 
**error: **Failed to install org.freedesktop.Platform: Flatpak system operation Deploy not allowed for user 
pekka@BIGIRON ~ **1**]> 



I guess there’s a permission problem with my flatpak install?

Should be able to add menu items manually if they don’t auto-populate.

Note this is per user not globle