You are not logged in.

#1 2011-09-21 21:39:51

fuzymonkey
Member
From: Austin, TX
Registered: 2009-07-28
Posts: 20

xdg-open and apvlv

I recently switched to apvlv as my default pdf viewer. When I try to set it as my default pdf program in xdg-open (for chromium), with the command:

xdg-mime default apvlv.desktop application/pdf

xdg-open does it's favorite default behavior, which is to try to open the file in firefox. Any idea how I can fix this?


End of line

Offline

#2 2011-09-21 23:15:30

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: xdg-open and apvlv

Have you tried to create a ~/.local/share/applications/defaults.list which contains the following?

[Default Applications]
application/pdf=apvlv.desktop

This works without any problems on my system. If still no luck, try to install perl-file-mimeinfo.

Regards

Offline

#3 2011-09-21 23:58:37

fuzymonkey
Member
From: Austin, TX
Registered: 2009-07-28
Posts: 20

Re: xdg-open and apvlv

Same problem. After installing perl-file-mimeinfo, the file now opens in gimp, rather than firefox.


End of line

Offline

#4 2011-09-21 23:59:50

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: xdg-open and apvlv

Can you please post your defaults.list?

And which WM are you using?

Regards

Offline

#5 2011-09-22 00:05:46

fuzymonkey
Member
From: Austin, TX
Registered: 2009-07-28
Posts: 20

Re: xdg-open and apvlv

[Default Applications]
text/x-shellscript=vim.desktop
text/rtf=abiword.desktop
application/msword=abiword.desktop
application/pdf=apvlv.desktop

My WM is scrotwm.


End of line

Offline

Board footer

Powered by FluxBB