dxhd icon indicating copy to clipboard operation
dxhd copied to clipboard

auto reloading the config

Open dakyskye opened this issue 3 years ago • 3 comments

What do you want

A flag (-a and --auto-reload) to make dxhd watch the config file passed for changes, and auto-reload that config on change.

Why

To avoid reloading all the dxhd instances/to get changes applied instantly.

Implementation hints

Use fsnotify for it.

dakyskye avatar Oct 09 '20 21:10 dakyskye

Currently looking at using the inotify API that is already provided through syscall so it doesn't create another dependency.

NotUnlikeTheWaves avatar Oct 09 '20 22:10 NotUnlikeTheWaves

Probably reserve -a flag for the future, and use -w --watch for this. Addition to implementation hints: -w should be ignored if -i is passed.

dakyskye avatar Nov 03 '20 17:11 dakyskye

After #39 this can be done easily.

dakyskye avatar Dec 18 '20 17:12 dakyskye