From 9a9b17ac31c660a5faf552a4e43f5f0d39ac2f0a Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Mon, 15 Dec 2025 00:16:23 +0800 Subject: [PATCH] Disable auto assets update in flatpak Signed-off-by: Loren Eteval --- Furious/TrayActions/Connect.py | 6 ++++-- Furious/TrayActions/Settings.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Furious/TrayActions/Connect.py b/Furious/TrayActions/Connect.py index 1ef08e1..befee7a 100644 --- a/Furious/TrayActions/Connect.py +++ b/Furious/TrayActions/Connect.py @@ -291,8 +291,10 @@ class ConnectAction(AppQAction): hasNewVersionCallback=newVersionCallback, ) - if SystemRuntime.appImagePath(): - logger.info('skipped auto assets update due to running from Linux AppImage') + if SystemRuntime.appImagePath() or SystemRuntime.flatpakID(): + logger.info( + 'skipped auto assets update due to application folder not writable' + ) else: if AppSettings.isStateON_('AutoUpdateAssetFiles'): # Automatically update assets diff --git a/Furious/TrayActions/Settings.py b/Furious/TrayActions/Settings.py index 6c27d49..ef8bdfe 100644 --- a/Furious/TrayActions/Settings.py +++ b/Furious/TrayActions/Settings.py @@ -184,7 +184,7 @@ class SettingsAction(AppQAction): else: hideDockIconAction = [] - if SystemRuntime.appImagePath(): + if SystemRuntime.appImagePath() or SystemRuntime.flatpakID(): autoUpdateAssetFilesAction = [] else: autoUpdateAssetFilesAction = (