#423 closed defect (fixed)

Some file type are not handled properly by DispVM mime handler

Reported by: joanna Owned by: marmarek
Priority: major Milestone: Release 1
Component: core Keywords:
Cc: marmarek

Description

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:

 872 ?        Ss     0:00 /usr/lib/qubes/qrexec_agent
  893 ?        S      0:00  \_ su - user -c exec /usr/lib/qubes/qubes_rpc_multiplexer qubes.OpenInVM work
  896 ?        Ss     0:00  |   \_ /usr/lib/qubes/vm-file-editor work
 1078 ?        S      0:00  |       \_ /usr/libexec/gvfsd-archive file=file:///tmp/GUI_Display.pptx

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...

Change History (8)

comment:1 Changed 16 months ago by joanna

  • Milestone changed from Release 1 Beta 3 to Release 1.0

comment:2 Changed 16 months ago by marmarek

  • Owner changed from joanna to marmarek
  • Status changed from new to assigned

comment:3 Changed 16 months ago by marmarek

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:4 Changed 16 months ago by joanna

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:5 Changed 16 months ago by marmarek

-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:6 Changed 16 months ago by joanna

Looks acceptable.

comment:7 Changed 16 months ago by marmarek

Additionally mimeopen ignores system defaults.list (in /usr/share/applications), uses only user's one. Will somehow workaround it.

comment:8 Changed 16 months ago by marmarek

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.