[file-qml-plugin] Use Qt classes to get mimetype for files
Bug #1387651 reported by
Stefano Verzegnassi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Document Viewer App |
Fix Released
|
Critical
|
Stefano Verzegnassi |
Bug Description
At the moment file-qml-plugin uses an external console command ("file") to get mime type for a file.
This doesn't work due to apparmor policies:
[ 708.702747] type=1400 audit(141467413
Use QMimeType[1] instead, from Qt5.
Marked as critical, since it's not possible to open a document on a device.
Related branches
lp:~verzegnassi-stefano/ubuntu-docviewer-app/fix-1387651-1387023
- David Planella: Approve
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
-
Diff: 232 lines (+42/-50)7 files modifiedmanifest.json.in (+1/-1)
src/app/qml/PdfView.qml (+12/-4)
src/app/qml/loadComponent.js (+0/-10)
src/app/qml/ubuntu-docviewer-app.qml (+0/-1)
src/plugin/file-qml-plugin/docviewerFile.cpp (+21/-26)
src/plugin/file-qml-plugin/docviewerFile.h (+6/-5)
src/plugin/poppler-qml-plugin/pdfModel.cpp (+2/-3)
To post a comment you must log in.
Fix committed into lp:ubuntu-docviewer-app at revision 38, scheduled for release in ubuntu- docviewer- app, milestone 2014-10-30