euroelessar / qutim

Module based Instant Messenger
http://qutim.org/
Other
141 stars 32 forks source link

Bugs in --config handling #390

Open nico-izo opened 8 years ago

nico-izo commented 8 years ago

Three issues: 1.) We are trying to load /usr/bin/profiles.json https://github.com/euroelessar/qutim/blob/f4f19187771e908e3f30e77c725b67c729e367d2/src/lib/qutim/profile.cpp#L151

And if it exists, --config will be ignored.

2.) We trying to open ~/.config/qutim even if --config is set https://github.com/euroelessar/qutim/blob/f4f19187771e908e3f30e77c725b67c729e367d2/src/lib/qutim/profile.cpp#L174

3.) And we are not handling this case in --config https://github.com/euroelessar/qutim/blob/f4f19187771e908e3f30e77c725b67c729e367d2/src/lib/qutim/profile.cpp#L152

So if you have 0.3.3 config, attempt to open it in 0.4 with --config will fail.