Fixed #48 an error occurig on Linux where configuration file path are not properly resolved during startup with the binary version of the program

This commit is contained in:
Marco Dalla Tiezza
2024-06-10 20:40:46 +02:00
parent b48a42dcc8
commit 436c54b733
2 changed files with 3 additions and 2 deletions

View File

@@ -10,6 +10,7 @@
### Fixed ### Fixed
- When the links/urls in the description field of a signal are clicked, they open the default browser [#46](https://github.com/AresValley/Artemis/issues/46) - When the links/urls in the description field of a signal are clicked, they open the default browser [#46](https://github.com/AresValley/Artemis/issues/46)
- Fixed an error occurig on Linux where configuration file path are not properly resolved during startup with the binary version of the program (they are if running from source) [#48](https://github.com/AresValley/Artemis/issues/48)
## [4.0.1] - 2024-06-9 ## [4.0.1] - 2024-06-9
### Added ### Added

View File

@@ -62,8 +62,8 @@ def check_conf_file():
and if it is different in structure (different section/options) and if it is different in structure (different section/options)
it will merge the conf file with the new template one it will merge the conf file with the new template one
""" """
active_conf = PREFERENCES_DIR / 'qtquickcontrols2.conf' active_conf = (PREFERENCES_DIR / 'qtquickcontrols2.conf').resolve()
template_conf = BASE_DIR / 'config' / 'qtquickcontrols2.conf' template_conf = (BASE_DIR / 'config' / 'qtquickcontrols2.conf').resolve()
if not active_conf.exists(): if not active_conf.exists():
copy_file(template_conf, active_conf) copy_file(template_conf, active_conf)