Create ~/.local/share/mime/packages if it doesn't exist

Review Request #128055 - Created May 30, 2016 and submitted - Latest diff uploaded

Information
Wolfgang Bauer
kde-cli-tools
Plasma/5.6, master
356237
Reviewers
kdeframeworks, plasma
dfaure

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.

Loading...