@ntrel As @elextr said, I think you are not using an up-to-date Geany, the code looks a bit different now. In #3413 I wasn't sure what to do with the non-conf files and left the old code here
https://github.com/geany/geany/blob/5298f51f41bb29e41970456652d2314ce609bcce...
but I agree with the idea of your patch and I think the whole `else` branch should be dropped.