-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 2017-01-04 06:26, Unman wrote:
> On Wed, Jan 04, 2017 at 10:00:35AM +0000, Robin Green wrote:
>> On Wed, 4 Jan 2017 at 00:16 Unman <[email protected]>
>> wrote:
>> 
>>> Did you actually read that bug report?
>> 
>> 
>> Yes.
>> 
>> 
>>> I'm amazed it's still open.
>>> 
>>> I assume that you are using a Fedora template
>> 
>> 
>> Yes.
>> 
>> 
>>> since 'mimeopen' works for a vanilla Debian template.
>>> 
>> 
>> I don't think the Fedora template uses mimeopen directly any
>> more.
>> 
>> 
>>> 
>>> 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?
>>> 
>> 
>> No, it doesn't. I tried both ways of settings the file
>> associations. Neither works.
>> 
> 
> You're right that the mimeopen method doesnt work for okular,
> although I wonder if this is a matter of getting the command
> right.
> 
> However, setting okular as default application in nautilus in 
> fedora-24-dvm, and then regenerating the DispVM template DOES work,
> at least for me. Can you check again with the xpdf/evince switch,
> and then add okular to the mix?
> 
> One thing I have noticed - for some reason it's best to restart 
> nautilus in the qube, before opening a file in a dispVM.
> 
> Andrew - can you test also and report back?
> 
> unman
> 

Yes, tested and confirmed. Here's the procedure I performed:

01. Clone fedora-24-minimal to fedora-24-okular.
02. Install Okular (and some other productivity programs) in
    fedora-24-okular.
03. In dom0: $ qvm-create-default-dvm fedora-24-okular
04. Create a PDF in fedora-24-okular.
05. Double-click on the PDF in Nautilus. It opens in Evince by default,
    as expected.
06. Right-click on the PDF in Nautilus. In Properties, set Okular as the
    default application.
07. Close the PDF and double-click it in Nautilus again. It opens in
    Okular this time, as expected.
08. In fedora-24-okular: $ > .qubes-dispvm-customized
09. Shut down fedora-24-okular.
10. In dom0: $ qvm-create-default-dvm fedora-24-okular
11. Start a new DispVM.
12. Create a PDF in the new DispVM.
13. Double-click on the new PDF in Nautilus.
14. It opens in Okular, as expected.

- -- 
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYjjeEAAoJENtN07w5UDAwsu8P/1OIpwGxoxK8exIEwLJdeFex
q+Xf7tbuwpaGNppeAoLygI9HBbZfsO/6QCf0AzRCwTEZUdH6WANh6HaYwcMPxZQc
PPs4ceXCqPrdFLPtA4SsVKYdYM0urUeQc2YVOktsOK3VS2o98hqzq22HtrPoxz9J
2CnKxLm7ZjCSOBksG83PBL5XSWaw4QUtj++LZqD/8+iqx6ZxV/uJCtRTUzohmh5V
N4huztLaVtBVgon6GYt2M2QdxRUhN3UPNXeW9Ftj5SPsY/cBcvS/E/UnTg2pN70r
7jN3MizfXMJ8O2VLpA/J2vZF0qQJO57uK39AyXhYsb+kPbd39LCi/3fjavs/wOV1
kEOUwS2V5gVBb1DNxXg0iyWvhshrXjO2bxep7JumrHhY/HLVioysxxJkyQxzAzfq
YfF7FYKNk5RvhNl86XwrN4hysi3ZxEqOBS5FAaN/0RnUvmtbBuVKMkS5YuSLl/vo
NeHxFohVt9XMIYAv92SCe013SJ7OQSdWSolmP/sstJAqsAIlqfe3uzPHnr3uV+93
PYzTgNNPIW/xWArpSCxtIB249boakNAG4/i8bwW0c+0MYfhzVFc/9/ar3QjTT1N5
DQzCIhRWF7nvf+9WUTGyGjLeOcU8i9syWTTlkrA/DSdfmAT5lpMrgL6netWK378K
bFdNqS/E/ChBQC1j4LUa
=Chom
-----END PGP SIGNATURE-----

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/d752fc60-0f94-5cad-91c9-aa069b98c232%40qubes-os.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to