On Tue, Jan 03, 2017 at 08:57:58AM +0000, Robin Green wrote: > On Tue, 3 Jan 2017 at 03:14 Unman <un...@thirdeyesecurity.org> wrote: > > > > > -------- Original Message -------- > > > > Subject: [qubes-users] How to set file association in disposable VMs? > > > > Local Time: December 29, 2016 7:48 PM > > > > UTC Time: December 29, 2016 11:48 AM > > > > From: gree...@gmail.com > > > > To: qubes-users <qubes-users@googlegroups.com> > > > > > > > > I have configured Nautilus in an AppVM to open PDF files with Okular, > > and > > > > I've then done the same configuration (as user "user") in the > > TemplateVM > > > > that the disposable VMs are also based on. However, when I choose > > "Open in > > > > disposable VM" from that reconfigured AppVM, even though the dispvm > > > > savefile is updated before launching the dispvm, it still uses the > > default > > > > PDF viewer instead of Okular. > > > > > > > > > > > > Sounds similar to this: > > > > > > > > > > https://groups.google.com/forum/#!searchin/qubes-users/open$20in$20dvm|sort:relevance/qubes-users/GZ2zWcoMuwc/vwAzmYS5DgAJ > > > > > > > > --WillyPillow > > > > > > > > You don't say *how* you have changed the association. > > > > I changed it using Nautilus, by right-clicking on the file, Properties. > > > > Try changing the file association in the template: > > mimeopen -d file.pdf will allow you to set the default application. > > Close down the template. > > Then make sure the dvm file is regenerated before opening the dispVM, > > as you have done. > > > > That didn't work either. Please note, as noted already in this thread, this > is a known bug. >
Did you actually read that bug report? I'm amazed it's still open. I assume that you are using a Fedora template since 'mimeopen' works for a vanilla Debian template. For Fedora based dvms, the dvm does NOT pick up the association from the template. It's therefore necessary to customize the DispVM: there are instructions for doing this in the docs. In brief, for a fedora-24-dvm: qvm-run -a fedora-24-dvm xterm In the dvm: mimeopen -d test.pdf touch /home/user/.qubes-dispvm-customized sudo halt Regenerate DispVM template using qvm-create-default-dvm: qvm-create-default-dvm fedora-24 I haven't tested this with Okular, but it works for setting other default applications. Can you confirm it with Okular? -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To post to this group, send email to qubes-users@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/20170104001653.GA27422%40thirdeyesecurity.org. For more options, visit https://groups.google.com/d/optout.