bobo1993324 / qmlTrojita

trojita port to qml that can run on ubuntu phone
Other
1 stars 1 forks source link

Changed cache directory due to click package confinements #36

Open bobo1993324 opened 10 years ago

bobo1993324 commented 10 years ago

it is fixed temporarily using QString cacheDir = QString(homedir) + QString("/.local/share/com.bobo-324.qmltrojita/.cache") + m_settings->value(SettingsNames::imapUserKey).toString();

The correct fix is to switch to using Trojita's src/Imap/Model/ImapAccess.cpp.

In particular, the code which follows the $XDG_CACHE_HOME is already in place, there's no need to reinvent it here.

bobo1993324 commented 10 years ago

http://developer.ubuntu.com/publish/apps/security-policy-for-click-packages/ it shows that the program have ~/.cache access, so trojita's original implementation would work with a different app id.

bobo1993324 commented 10 years ago

For upstream Trojita, the cache directory is not usable under-confinement.

It may be clean to have the cache stored inside .cache directory.