Bug 440078

Summary: Support disabling updates on live system
Product: [Applications] Discover Reporter: Alex <alex765>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED FIXED    
Severity: minor CC: aleixpol, nate, ngompa13, rdieter
Priority: NOR    
Version: 5.22.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alex 2021-07-20 15:15:31 UTC
At the moment, when using Discover on a live system, you're able to install updates, which shouldn't be allowed. On a live system, discover should still be able to install and uninstall apps, but not perform system updates.

So maybe this could just be a configuration option which hides the update option on the left pane.

I originally filed this issue downstream here https://pagure.io/fedora-kde/SIG/issue/60
Comment 1 Neal Gompa 2021-07-20 23:44:43 UTC
Discover can "discover" (lol) from the kernel command-line whether or not we're running on live OSes by looking at kernel args to see if "rd.live.image" is in the kernel command-line. Discover can self-disable by default when that is present in the kernel command line.
Comment 2 Rex Dieter 2021-07-29 13:55:18 UTC
I'm not necessarily convinced this is a good idea.  Live users should be able to update/install items if they wish (even if it's not necessarily a good idea)
Comment 3 Nate Graham 2023-01-12 18:11:10 UTC
Discover offers support for "Offline Updates" which implements this feature.

Distros get to choose whether it's on or off by default, and a number have opted in--at least Fedora and Neon, off the top of my head. Users can also opt in if their distro doesn't do this.