Summary: | Unable to change icon associated with mimetype if ~/.local/share/mime/packages does not already exist. | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Paul <pip.kde> |
Component: | kcm_filetypes | Assignee: | David Faure <faure> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cfeck, luisfe, overdiversifies_pryingly, wbauer1 |
Priority: | NOR | ||
Version: | 5.4.3 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kde-cli-tools/c2aa2a46d51793d26dc6e93e60b5933cb1193e56 | Version Fixed In: | 5.6.5 |
Sentry Crash Report: |
Description
Paul
2015-12-03 11:26:06 UTC
Git commit c2aa2a46d51793d26dc6e93e60b5933cb1193e56 by Wolfgang Bauer. Committed on 30/05/2016 at 13:49. Pushed by wbauer into branch 'Plasma/5.6'. Create ~/.local/share/mime/packages/ if it doesn't exist 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. FIXED-IN: 5.6.5 REVIEW: 128055 M +5 -1 keditfiletype/mimetypewriter.cpp http://commits.kde.org/kde-cli-tools/c2aa2a46d51793d26dc6e93e60b5933cb1193e56 (In reply to Paul from comment #0) > Interestingly, System Settings was able to create an additional > subdirectory, "~/.local/share/mime/application". This was probably created by "update-mime-database" (which is run by systemsettings5/keditfiletype), I suppose. systemsettings5/keditfiletype doesn't depend on that directory to be existent AFAICT. Btw, "update-mime-database ~/.local/share/mime/" fails as well if ~/.local/share/mime/packages/ doesn't exist (and ~/.local/share/mime/ does) , but that's out of scope for KDE... Well, the source files for update-mime-database are those under the "packages" subdir. It generates everything else from that. So if there's no packages subdir, u-m-d has nothing to do, no bug there. @David Faure: Thanks for the explanation, makes sense of course. I didn't mean to imply that it's a bug in u-m-d anyway (I wasn't sure actually), I merely mentioned it because it shows similar behavior... *** Bug 364511 has been marked as a duplicate of this bug. *** Hm, I was incorrectly assuming that this commit went to "kio". Am I right that this does not fix dolphin? How about other applications that uses the property dialog? This does indeed seem to be fixed on 5.6.5, thanks. (In reply to Christoph Feck from comment #6) > Hm, I was incorrectly assuming that this commit went to "kio". Am I right > that this does not fix dolphin? How about other applications that uses the > property dialog? I just tried, and it does work in the "Properties" dialog (e.g. dolphin) as well. The "Properties" dialog uses KMimeTypeEditor::editMimeType() for that, which in turn just runs keditfiletype5 (where I fixed it), see https://api.kde.org/frameworks/kwidgetsaddons/html/kmimetypeeditor_8cpp_source.html . *** Bug 356972 has been marked as a duplicate of this bug. *** |