Skip to content
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

default config file clobbered #97

Open
tox2ik opened this issue Apr 29, 2021 · 0 comments
Open

default config file clobbered #97

tox2ik opened this issue Apr 29, 2021 · 0 comments

Comments

@tox2ik
Copy link

tox2ik commented Apr 29, 2021

to reproduce:

start with a ~/.config/twmn/twmn.conf containing

bounce=false
duration=333
#[main]

run the daemon

$  twmnd

expected behavior:

twmc is able to connect
config file is not altered

actual result:

twmc is able to connect
config file is replaced by default
twmd output contains:

Starting twmnd version 1.2
Creating default settings ... 

I don't like that the config file is nuked if it does not contain the [main] section.
You should fill in the "missing values" at runtime with defaults without writing over "my" config file!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant