Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSome file type are not handled properly by DispVM mime handler #423
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Modified by joanna on 18 Jan 2012 14:14 UTC |
marmarek
assigned
rootkovska
Mar 8, 2015
marmarek
added this to the Release 1 Beta 3 milestone
Mar 8, 2015
marmarek
added
bug
C: core
P: major
labels
Mar 8, 2015
marmarek
removed this from the Release 1 Beta 3 milestone
Mar 8, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Modified by marmarek on 6 Feb 2012 11:25 UTC |
marmarek
assigned
marmarek
and unassigned
rootkovska
Mar 8, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by marmarek on 6 Feb 2012 14:01 UTC
In this case (and IMHO many others) reason is that vm-file-editor ignores file extension (calls mimeopen -M) - and then mimeopen doesn't recognize pptx based only on content.
But there is general problem - how to select application in DispVM for specific file type.
|
Comment by marmarek on 6 Feb 2012 14:01 UTC |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by joanna on 6 Feb 2012 14:12 UTC
IIRC the reason for adding -M option was that some file types, notably plaintext files, were not opened correctly... Maybe this has changed now, and we should consider removing the -M?
As for selecting app -- ideally we could just use /usr/share/application db as it is defined in the DispVM template...?
|
Comment by joanna on 6 Feb 2012 14:12 UTC As for selecting app -- ideally we could just use /usr/share/application db as it is defined in the DispVM template...? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by marmarek on 6 Feb 2012 14:17 UTC
-M already removed.
/usr/share/application is used by mimeopen, but it can be ambiguous. Eg in my template, list for text/html:
1) AbiWord (fedora-abiword)
2) Opera (opera-browser)
3) Firefox (mozilla-firefox)
4) gedit (gedit)
Note AbiWord at the first place (default!).
I think, the solution is just use ~/.local/share/applications/defaults.list from somewhere - I propose from /home of TemplateVM on which DispVM is based.
|
Comment by marmarek on 6 Feb 2012 14:17 UTC /usr/share/application is used by mimeopen, but it can be ambiguous. Eg in my template, list for text/html: |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Comment by joanna on 6 Feb 2012 14:22 UTC |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by marmarek on 6 Feb 2012 18:02 UTC
Additionally mimeopen ignores system defaults.list (in /usr/share/applications), uses only user's one. Will somehow workaround it.
|
Comment by marmarek on 6 Feb 2012 18:02 UTC |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 8, 2015
Member
Comment by marmarek on 10 Feb 2012 09:58 UTC
http://git.qubes-os.org/gitweb/?p=marmarek/core.git;a=commit;h=8689368a112cc48eb2f8067c3f70a64efff9a628
|
Comment by marmarek on 10 Feb 2012 09:58 UTC |
marmarek commentedMar 8, 2015
Reported by joanna on 18 Jan 2012 10:22 UTC
E.g. when I try to open a .pptx file then the DispVM is started, but nothing happens. This is a ps from the DispVM:
I can open this .pptx file fine without using DispVM.
Generally, I think we should display some prompt when DispVM mime handler is unable to open the file...
Migrated-From: https://wiki.qubes-os.org/ticket/423