Open bobo1993324 opened 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.
For upstream Trojita, the cache directory is not usable under-confinement.
It may be clean to have the cache stored inside .cache directory.
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.