Bug 471548

Summary: Auto-Update for flatpaks via Discover appears to be non-functional
Product: [Applications] Discover Reporter: Shawn W Dunn <sfalken>
Component: Flatpak BackendAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: major CC: accounts, aleixpol, izerpizer, jgrulich, johnmaverick74, kilgore.trout, mlw5krilu, nate, robert, supgesu, tim, travier, viniciush.dev
Priority: NOR    
Version: 5.27.6   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: logs of manual run of plasma-discover-update via journalctl

Description Shawn W Dunn 2023-06-28 21:04:45 UTC
Created attachment 159962 [details]
logs of manual run of plasma-discover-update via journalctl

SUMMARY
On openSUSE Kalpa, we only use Discover to handle the installation and management of flatpaks and fwupd, setting Updates to run Automatically in the "Software Update" kcm appears to work fine for fwupd, but is non-functional for flatpak/flathub

STEPS TO REPRODUCE
1. Enable flathub repository
2. Install some flatpaks
3. Set to automatically update software daily in the "Software Update" kcm

OBSERVED RESULT
Flatpaks do not get updated automatically.   The Notification that updates are available works just fine, but there is no automatic download and installation of them.

EXPECTED RESULT
Discover checks for updates of flatpaks from enabled repositories, downloads, and installs them, on a daily schedule

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Kalpa 20230625 (Linux 6.3.9-1-default)
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Running `plasma-discover-update` manually in a terminal produces the expected output.  Please see attached logs.
Comment 1 Nate Graham 2023-08-02 20:49:31 UTC
*** Bug 472908 has been marked as a duplicate of this bug. ***
Comment 2 Vinícius 2024-08-19 13:30:41 UTC
it's the same issue here too but plasma-discover-update don't update anything 

Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.3-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700U with Radeon Graphics
Memory: 7,1 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 82MF
System Version: IdeaPad 3 15ALC6
Comment 3 Jack 2024-09-11 16:44:40 UTC
I also have this same issue with multiple clients who use fedora, having wanted to move away from windows.

I have downloaded and install enabled, but they don't actually download and install, only notify there is an update. Many tech illiterate people and those that don't understand updates won't even know about doing updates, especially if they are used to windows doing updates automatically for them.

This could result in security updates and bug fixes being missed out.
Comment 4 Vinícius 2024-09-11 22:12:22 UTC
(In reply to Jack from comment #3)
> I also have this same issue with multiple clients who use fedora, having
> wanted to move away from windows.
> 
> I have downloaded and install enabled, but they don't actually download and
> install, only notify there is an update. Many tech illiterate people and
> those that don't understand updates won't even know about doing updates,
> especially if they are used to windows doing updates automatically for them.
> 
> This could result in security updates and bug fixes being missed out.

as a workaround for your issue you can make a systemd script to automatically update the flatpaks, it's not ideal yes, but better than missing security updates before this get fixed
Comment 5 Nate Graham 2024-09-16 14:29:53 UTC
*** Bug 447245 has been marked as a duplicate of this bug. ***