Bug 428210 - Latte Dock does not respect XDG_CONFIG_HOME env variable
Summary: Latte Dock does not respect XDG_CONFIG_HOME env variable
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Unmaintained
Component: application (other bugs)
Version First Reported In: 0.9.11
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-25 00:53 UTC by Barney
Modified: 2021-02-02 20:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Barney 2020-10-25 00:53:20 UTC
SUMMARY

When XDG_CONFIG_HOME is defined to something other than the default value, Latte Dock ignores it and continues to write to ~/.config.

STEPS TO REPRODUCE
1. Set environment XDG_CONFIG_HOME to something other than the default (~/.config) 
2. Install / start latte dock.

OBSERVED RESULT

Latte dock config files are written to ~/.config/latte/

EXPECTED RESULT

Latte dock config files are written to $(XDG_CONFIG_HOME)/latte/

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 20.04.1 LTS
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
Comment 1 Michail Vourlakos 2021-02-02 20:31:24 UTC
Git commit f27f938042180d05993691ea0825c4485a5f5b9b by Michail Vourlakos.
Committed on 02/02/2021 at 20:29.
Pushed by mvourlakos into branch 'master'.

support XDG_CONFIG_PATH for app code

M  +9    -8    app/layouts/importer.cpp
M  +2    -1    app/layouts/manager.cpp
M  +4    -1    app/plasma/extended/screenpool.cpp
M  +1    -1    app/plasma/extended/theme.cpp
M  +8    -7    app/settings/universalsettings.cpp
M  +2    -1    app/shortcuts/shortcutstracker.cpp
M  +13   -0    app/tools/commontools.cpp
M  +2    -0    app/tools/commontools.h
M  +2    -1    app/wm/schemecolors.cpp
M  +2    -1    app/wm/tracker/schemes.cpp

https://invent.kde.org/plasma/latte-dock/commit/f27f938042180d05993691ea0825c4485a5f5b9b