New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some file type are not handled properly by DispVM mime handler #423

Closed
marmarek opened this Issue Mar 8, 2015 · 8 comments

Comments

Projects
None yet
2 participants
@marmarek
Member

marmarek commented Mar 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:

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

Migrated-From: https://wiki.qubes-os.org/ticket/423

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by joanna on 18 Jan 2012 14:14 UTC

Member

marmarek commented Mar 8, 2015

Modified by joanna on 18 Jan 2012 14:14 UTC

@marmarek marmarek added this to the Release 1 Beta 3 milestone Mar 8, 2015

@marmarek marmarek removed this from the Release 1 Beta 3 milestone Mar 8, 2015

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by marmarek on 6 Feb 2012 11:25 UTC

Member

marmarek commented Mar 8, 2015

Modified by marmarek on 6 Feb 2012 11:25 UTC

@marmarek marmarek assigned marmarek and unassigned rootkovska Mar 8, 2015

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

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.

Member

marmarek commented Mar 8, 2015

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.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

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

Member

marmarek commented Mar 8, 2015

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

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

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.

Member

marmarek commented Mar 8, 2015

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.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 6 Feb 2012 14:22 UTC
Looks acceptable.

Member

marmarek commented Mar 8, 2015

Comment by joanna on 6 Feb 2012 14:22 UTC
Looks acceptable.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

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.

Member

marmarek commented Mar 8, 2015

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.

@marmarek

This comment has been minimized.

Show comment
Hide comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment