summaryrefslogtreecommitdiff
path: root/py_modules/lsfg_vk/configuration.py
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-17 21:00:44 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-17 21:00:44 -0400
commit620c04f75ad0f6025cc26f73dd07c466d6e1c62e (patch)
treea96afdb471cd6b475d766463987f03807c6f0a89 /py_modules/lsfg_vk/configuration.py
parentad0ba0fc61f83e2aaf22192e7d0ad05dde9ffd62 (diff)
downloaddecky-lsfg-vk-620c04f75ad0f6025cc26f73dd07c466d6e1c62e.tar.gz
decky-lsfg-vk-620c04f75ad0f6025cc26f73dd07c466d6e1c62e.zip
fix config writes
Diffstat (limited to 'py_modules/lsfg_vk/configuration.py')
-rw-r--r--py_modules/lsfg_vk/configuration.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/py_modules/lsfg_vk/configuration.py b/py_modules/lsfg_vk/configuration.py
index c15fc37..a4fcae5 100644
--- a/py_modules/lsfg_vk/configuration.py
+++ b/py_modules/lsfg_vk/configuration.py
@@ -89,11 +89,11 @@ class ConfigurationService(BaseService):
# Generate TOML content using centralized manager
toml_content = ConfigurationManager.generate_toml_content(config)
- # Ensure config directory exists
+ # Ensure config directory exists
self.config_dir.mkdir(parents=True, exist_ok=True)
- # Write the updated config atomically
- self._atomic_write(self.config_file_path, toml_content, 0o644)
+ # Write the updated config directly to preserve inode for file watchers
+ self._write_file(self.config_file_path, toml_content, 0o644)
self.log.info(f"Updated lsfg TOML configuration: enable={enable}, "
f"dll='{dll}', multiplier={multiplier}, flow_scale={flow_scale}, "
@@ -154,8 +154,8 @@ class ConfigurationService(BaseService):
# Ensure config directory exists
self.config_dir.mkdir(parents=True, exist_ok=True)
- # Write the updated config atomically
- self._atomic_write(self.config_file_path, toml_content, 0o644)
+ # Write the updated config directly to preserve inode for file watchers
+ self._write_file(self.config_file_path, toml_content, 0o644)
self.log.info(f"Updated DLL path in lsfg configuration: '{dll_path}'")