Add first-run permission summary dialog before launch

Shows what access the AppImage will have on first launch. Lists file,
network, and display server access. Mentions firejail if available.
Tracks prompted status in DB so the dialog only appears once per app.
This commit is contained in:
lashman
2026-02-28 00:07:49 +02:00
parent 8cf71ae858
commit 585320b363
4 changed files with 203 additions and 70 deletions

View File

@@ -1770,6 +1770,14 @@ impl Database {
Ok(())
}
pub fn set_first_run_prompted(&self, id: i64, prompted: bool) -> SqlResult<()> {
self.conn.execute(
"UPDATE appimages SET first_run_prompted = ?2 WHERE id = ?1",
params![id, prompted as i32],
)?;
Ok(())
}
// --- Launch statistics ---
pub fn get_top_launched(&self, limit: i32) -> SqlResult<Vec<(String, u64)>> {