sboli / twmn

A notification system for tiling window managers
GNU Lesser General Public License v3.0
526 stars 47 forks source link

default config file clobbered #97

Open tox2ik opened 3 years ago

tox2ik commented 3 years ago

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!