-
-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework config and reload config on file change/creation/deletion #663
Merged
+206
−72
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
cfa2c8f
add config.py and config_event_handler.py
shadeyg56 17522bf
update config imports and variables
shadeyg56 eb31ce3
add 'pyinotify' dependency
shadeyg56 84a9855
config: check for changes using threading
shadeyg56 d9453a0
config: handle errors and new eventsx
shadeyg56 47711ff
config: set_path even if file doesn't exist and make new ConfigParser…
shadeyg56 6e269d9
fix get_config call
shadeyg56 6cf4a66
config: check for changes on moved file
shadeyg56 81536c8
call notifier.start() manually to prevent hanging
shadeyg56 00c9630
config: update comments
shadeyg56 de03310
Merge branch 'master' into config-update
shadeyg56 9056d7d
battery: fix config imports
shadeyg56 5397ca5
config: fix config deletion detection
shadeyg56 4cdcf74
Add load from user config in XDG_CONFIG_HOME if available (#672)
braun-steven a8c66be
Merge branch 'config-conflict' into config-update
shadeyg56 bc99a28
config: move find_config_file function and fix finding home directory
shadeyg56 e540121
Merge branch 'master' into config-update
shadeyg56 00463b3
auto_cpufreq: fix hanging on --daemon, --live, and --monitor
shadeyg56 e3678c1
swap pyinotify for patched version
shadeyg56 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Empty file.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that this is gone, I fail to understand where the "config" file is picked up with _Config class and pyinotify. Could you please point me to line where this is happening?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the config instance is imported from the
config.py
file and you can access the config by callingconfig.get_config()
. This is seen incore.py
in all of the set functions (where justget_config()
) used to be