brezerk / q4wine

Q4Wine is a Qt GUI for W.I.N.E. It will help you manage wine prefixes and installed applications.
http://q4wine.brezblock.org.ua/
GNU General Public License v3.0
204 stars 40 forks source link

[BUG-178] Unhardcode all XDG standard paths #180

Closed gasinvein closed 3 years ago

gasinvein commented 3 years ago

This adds standard location getting static methods to the corelib class, and replaces hardcoded .config and .local/share with corresponding method calls everywhere I was able to find them. Unless I've mistaken somewhere (which is quite possible, since I've started learning C++ very recently), the behavior in default Linux environment (i.e. when XDG_*_HOME vars are not set) should stay unchanged. Fixes #179

gasinvein commented 3 years ago

Looks like I've linked your PR instead of the original issue, sorry. This PR should've been closing #178