Create ~/.local/share/mime/packages if it doesn't exist
Review Request #128055 - Created May 30, 2016 and submitted
QStandardDirs::writableLocation() doesn't guarantee that the returned directory actually exists.
So create it, otherwise saving the changes will fail if it isn't there.
Delete ~/.local/share/mime/packages/ or ~/.local/share/mime/, if they exist.
Enter the file types editor and modify a file type (e.g. add/change the icon), then press OK or Apply.
Close it and open it again.
The changes are still there now, before they were not applied and reverted to the system defaults.
Call QDir::mkpath() unconditionally, it checks for the directory's existance anyway
Revision 2 (+5 -1)