summaryrefslogtreecommitdiff
path: root/py_modules/lsfg_vk/configuration.py
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2026-07-30 21:09:27 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2026-07-30 21:09:27 -0400
commiteb51ec80231cf13accf8af156fa7a4283e2a2f88 (patch)
tree95fd368b42efa29f28b924c8884a8f0d4c80d123 /py_modules/lsfg_vk/configuration.py
parent4390d600ffd35184c4c30bc64480f58e468627de (diff)
downloaddecky-lsfg-vk-eb51ec80231cf13accf8af156fa7a4283e2a2f88.tar.gz
decky-lsfg-vk-eb51ec80231cf13accf8af156fa7a4283e2a2f88.zip
fix: harden lsfg-v2 migration and flatpak supportfeat/lsfg-v2-release
Diffstat (limited to 'py_modules/lsfg_vk/configuration.py')
-rw-r--r--py_modules/lsfg_vk/configuration.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/py_modules/lsfg_vk/configuration.py b/py_modules/lsfg_vk/configuration.py
index 446ac3a..6511745 100644
--- a/py_modules/lsfg_vk/configuration.py
+++ b/py_modules/lsfg_vk/configuration.py
@@ -18,10 +18,9 @@ class ConfigurationService(BaseService):
@staticmethod
def _profile_selection_lines(profile_name: str, config: ConfigurationData) -> list[str]:
- """Use native matching when a selected profile declares active_in."""
- active_in = str(config.get("active_in", "")).strip()
- if active_in:
- return ["# active_in is configured; lsfg-vk will select a matching profile automatically."]
+ """Force the selected profile unless the user explicitly opts into native matching."""
+ if config.get("use_native_matching", False):
+ return ["# lsfg-vk will select a matching profile from Active In."]
return [f"export LSFGVK_PROFILE={shlex.quote(profile_name)}"]
def get_config(self) -> ConfigurationResponse: