Bug 481744

Summary: Installing first Flatpak repo in Discover requires the app to re-launch before Flatpak stuff fully takes effect
Product: [Applications] Discover Reporter: shoukry.go
Component: Flatpak BackendAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: aleixpol, hello, jgrulich, john.liptrot, nate, travier
Priority: NOR Keywords: usability
Version First Reported In: 5.27.8   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screencast of me trying to replicate the issue

Description shoukry.go 2024-02-24 03:07:54 UTC
SUMMARY
Opening a flatpak app from the menus does not work (may require additional testing)

To reproduce:
Download info.beyondallreason.bar from flatpak, then attempt to run it from the menus in discover, it will not run.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 23.10 - linux 6.5.0-21-generic (64-bit)
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
X11 Version: 1.21.1.7
Nvidia driver: 535.154.05

ADDITIONAL INFORMATION 
Using flatpak from command line works fine.
Desktop entry for kde's application launcher is not created and neither is it created on the desktop (possibly a different issue altogether, could need a separate report)
Comment 1 shoukry.go 2024-02-24 03:25:11 UTC
CHANGED - Menu dialogue does not tell you that flatpaks need a restart to work! - it doesn't say anything at all
Comment 2 Mike Stemle 2024-03-12 11:25:41 UTC
Cannot replicate using instructions from reporter. I have a screencast and will upload momentarily.
Comment 3 Mike Stemle 2024-03-12 11:27:01 UTC
Created attachment 167023 [details]
Screencast of me trying to replicate the issue

Here's the screencast.
Comment 4 Mike Stemle 2024-03-12 11:30:13 UTC
(In reply to Mike Stemle from comment #3)
> Created attachment 167023 [details]
> Screencast of me trying to replicate the issue
> 
> Here's the screencast.

I forgot to mention, I'm using KDE Neon, not Kubuntu. This could still be a Kubuntu issue.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.5.0-25-generic (64-bit)
Graphics Platform: Wayland
Processors: 12 × 13th Gen Intel® Core™ i7-1365U
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: LENOVO
Product Name: 21HM000SUS
System Version: ThinkPad X1 Carbon Gen 11
Comment 5 shoukry.go 2024-03-13 04:17:35 UTC
SORRY- THIS ISSUE AFFECTS YOU AFTER ENABLING FLATPAKS FOR THE FIRST TIME IN DISCOVER, the. reproduce the issue
Comment 6 john.liptrot 2025-10-08 18:06:03 UTC
Hi,

Is this still an issue for you? 5.27.8 is quite old now, can you still reproduce this on an up-to-date system?

I cannot reproduce this.

I have installed the game from this link >>> info.beyondallreason.bar <<< and I can launch it from Discover.
Comment 7 Nate Graham 2025-10-08 20:26:26 UTC
I've been able to reproduce that in the past, that after first adding Flathub using Discover's UI for it, I needed to re-launch Discover or else Flatpak stuff didn't all work correctly.
Comment 8 john.liptrot 2025-10-09 16:24:16 UTC
(In reply to Nate Graham from comment #7)
> I've been able to reproduce that in the past, that after first adding
> Flathub using Discover's UI for it, I needed to re-launch Discover or else
> Flatpak stuff didn't all work correctly.

Steps taken;

1. Purged all traces of flatphub repos with command 'flatpak remote-delete flathub'
2. Confirmed in both Discover's settings menu and command line that repos are gone with 'flatpak remotes -d' & 'flatpak remotes --show-disabled'
3. Closed Discover
4. Deleted the '.cache' folder in my home directory & also deleted the entire contents of the '.var/app/' folder, just in case this might interfere with testing in any way
5. Opened Discover and was presented with 'Add flathub' button on the home page. Clicked this button.
6. Confirmed flathub repo exists in Discovers settings menu. Confirmed existence of the flathub repo in the command line with 'flatpak remotes -d'
7. Installed beyond all reason. Installation process began, then eventually finished.

What *did* work for me;
1. Installing 'BAR' worked fine. No errors or warnings.
2. Searching for vlc, firefox, blender, chrome etc etc returns results correctly. Results are clickable, the information pages of apps load properly, screenshots, reviews etc.
3. Starting 'BAR' from its own page with the 'launch' button works fine. No restart of Discover required. Also confirmed that 'BAR' was present in my start menu/application menu in Plasma and can be started from there too.
4. Uninstalling 'BAR' from its info page worked fine.
5. About page in Discover works.
6. Browsing 'all applications' or any other category/subcategory works fine.

What did *not* work for me;
1. Installed page did not list 'BAR' when installed. Only 'KDE Linux' is shown, which is nothing to do with flathub.
2. After clicking the 'Add flathub' button in step 5, the home page changed to a 'check your connection' error.

After all of this, I closed and then re-opened Discover. Both home page & Installed page work properly.

Repeated steps 1-7, except this time in step 5 instead of clicking 'add flathub' on the home page, I clicked 'add flathub' on the settings page of Discover. No difference at all.

Operating System: KDE Linux 2025-09-20
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.16.7-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 2 × Intel® Pentium® 3805U @ 1.90GHz
Memory: 4 GiB of RAM (3.7 GiB usable)
Graphics Processor: Intel® HD Graphics
Manufacturer: LENOVO
Product Name: 80EW
System Version: Lenovo B50-80