{"action":"created","issue":{"url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1621","labels_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1621/labels{/name}","comments_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1621/comments","events_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1621/events","html_url":"https://github.com/QubesOS/qubes-issues/issues/1621","id":126622246,"number":1621,"title":"Open in DispVM doesn't work for PDF files","user":{"login":"rootkovska","id":10212863,"avatar_url":"https://avatars.githubusercontent.com/u/10212863?v=3","gravatar_id":"","url":"https://api.github.com/users/rootkovska","html_url":"https://github.com/rootkovska","followers_url":"https://api.github.com/users/rootkovska/followers","following_url":"https://api.github.com/users/rootkovska/following{/other_user}","gists_url":"https://api.github.com/users/rootkovska/gists{/gist_id}","starred_url":"https://api.github.com/users/rootkovska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rootkovska/subscriptions","organizations_url":"https://api.github.com/users/rootkovska/orgs","repos_url":"https://api.github.com/users/rootkovska/repos","events_url":"https://api.github.com/users/rootkovska/events{/privacy}","received_events_url":"https://api.github.com/users/rootkovska/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/C:%20core","name":"C: core","color":"cccccc"},{"url":"https://api.github.com/repos/QubesOS/qubes-issues/labels/P:%20major","name":"P: major","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/QubesOS/qubes-issues/milestones/16","html_url":"https://github.com/QubesOS/qubes-issues/milestones/Release%203.1","labels_url":"https://api.github.com/repos/QubesOS/qubes-issues/milestones/16/labels","id":1083578,"number":16,"title":"Release 3.1","description":"","creator":{"login":"marmarek","id":726704,"avatar_url":"https://avatars.githubusercontent.com/u/726704?v=3","gravatar_id":"","url":"https://api.github.com/users/marmarek","html_url":"https://github.com/marmarek","followers_url":"https://api.github.com/users/marmarek/followers","following_url":"https://api.github.com/users/marmarek/following{/other_user}","gists_url":"https://api.github.com/users/marmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/marmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmarek/subscriptions","organizations_url":"https://api.github.com/users/marmarek/orgs","repos_url":"https://api.github.com/users/marmarek/repos","events_url":"https://api.github.com/users/marmarek/events{/privacy}","received_events_url":"https://api.github.com/users/marmarek/received_events","type":"User","site_admin":false},"open_issues":152,"closed_issues":86,"state":"open","created_at":"2015-04-25T20:30:27Z","updated_at":"2016-02-02T00:18:30Z","due_on":null,"closed_at":null},"comments":18,"created_at":"2016-01-14T10:19:52Z","updated_at":"2016-02-02T01:30:46Z","closed_at":null,"body":"It works for many other files. But when sending a PDF to open I'm consistently getting an error about not being able to find the proper MIME handler. My DispVM is based on fc23. Fresh 3.1-rc2."},"comment":{"url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/comments/178296724","html_url":"https://github.com/QubesOS/qubes-issues/issues/1621#issuecomment-178296724","issue_url":"https://api.github.com/repos/QubesOS/qubes-issues/issues/1621","id":178296724,"user":{"login":"marmarek","id":726704,"avatar_url":"https://avatars.githubusercontent.com/u/726704?v=3","gravatar_id":"","url":"https://api.github.com/users/marmarek","html_url":"https://github.com/marmarek","followers_url":"https://api.github.com/users/marmarek/followers","following_url":"https://api.github.com/users/marmarek/following{/other_user}","gists_url":"https://api.github.com/users/marmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/marmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmarek/subscriptions","organizations_url":"https://api.github.com/users/marmarek/orgs","repos_url":"https://api.github.com/users/marmarek/repos","events_url":"https://api.github.com/users/marmarek/events{/privacy}","received_events_url":"https://api.github.com/users/marmarek/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T01:30:46Z","updated_at":"2016-02-02T01:30:46Z","body":"`xdg-open` solves some of the problems with `qvm-open-in-vm` (non-DisposableVM), but completely breaks `qvm-open-in-dvm` (DisposableVM). Generally because it doesn't wait for the editor to finish. So when `xdg-open` exits, it doesn't mean user has closed the editor. But after \"editor process\" (which is `xdg-open` in this case) is terminated, DisposableVM is destroyed.\r\n\r\nThis is somehow generic problem with things like D-Bus activation (used by `gvfs-open` called from `xdg-open` here). It affects also some other use cases (email client removes temporary saved attachment file after viewer app is closed):\r\n - https://bugzilla.redhat.com/show_bug.cgi?id=653249\r\n - https://bugzilla.gnome.org/show_bug.cgi?id=652262\r\n\r\nThere is workaround for this is in the first link - set `DE=generic` to not use any environment-specific tool (even when available) and force usage of `xdg-mime` and application call directly from `xdg-open`. Generally it works - the only failure I've got then, is opening `txt` with LibreOffice. I think it shouldn't be even considered a failure.\r\n\r\nBut the problem will return, once more and more applications will use D-Bus activation. The issue is already discussed in the second link - an API for notification about application close. But the discussion stalled about a year ago..."}}