$XDG_CACHE_HOME in QML
Hello!
The FAQ contains information that developers must use environment variables like $XDG_CACHE_HOME
.
I tried to use this in QML with the follow way:
Image {
...
source: "$XDG_CACHE_HOME/harbour-kat/" + StorageJS.readUserAvatar()
}
After this in the log I saw the follow message:
QML Image: Cannot open: file:///usr/share/harbour-kat/qml/pages/$XDG_CACHE_HOME/harbour-kat/jJGeaWL3a9E.jpg
What is the right way of using this variables in QML?
Thanks in advance!