Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[config] Process config.d files in alnum order
Each configuration file is kept in separate QSettings object and lookup for values is done in load order - which is reverse from convention where 10-something.conf can be overridden with 20-something-else.conf. Change evaluation so that latter files can override earlier ones under assumption that so far there have been no devices that would actually employ more than one config.d file and thus glitches are unlikely. Also merge data from all settings files into a single QSettings object i.e. trade a bit more complex startup for simpler lookups during runtime. The primary config file, if specified, still overrides any settings made from config.d files. Rename 90-sensord-default.conf to 10-sensord-default.conf so that it still is 10 points up from the minimum priority. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
6 changed files
with
43 additions
and
68 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters