feat(snap): add snap sandbox detection and welcome modal wiring
Detect when QBZ runs inside a Snap sandbox (via SNAP env var) and show a one-time welcome modal with required plug connection commands. Adds a Snap Sandbox section in Settings with copyable commands, mirroring the existing Flatpak pattern. Backend: snap.rs module, DB table snap_welcome_shown, V2 commands. Frontend: updatesService, +page.svelte modal queue, SettingsView section.
This commit is contained in:
11 files changed
+182
-15
No files matched your search
@@ -10449,6 +10449,18 @@ pub fn v2_is_running_in_flatpak() -> bool {
|
||||
crate::flatpak::is_running_in_flatpak()
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub fn v2_is_running_in_snap() -> bool {
|
||||
crate::snap::is_running_in_snap()
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub fn v2_mark_snap_welcome_shown(
|
||||
state: State<'_, crate::updates::UpdatesState>,
|
||||
) -> Result<(), String> {
|
||||
crate::updates::mark_snap_welcome_shown(state)
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn v2_detect_legacy_cached_files(
|
||||
cache_state: State<'_, OfflineCacheState>,
|
||||
|
||||
Reference in new issue
Block a user