Re: [gentoo-user] xdg-open opens pdf with gimp

2016-06-07 Thread sven.garbade
thanks for the hint. I found the following strange configuration:

as a normal user:

> xdg-mime query default application/pdf
zathura-pdf-poppler.desktop;

> xdg-mime default zathura-pdf-poppler.desktop application/pdf

xdg-open still uses gimp.

As root:

root > xdg-mime query default application/pdf
zzz-gimp.desktop

I deleted zzz-gimp.desktop from /usr/share/applications/, then xdg-open
uses zathura.

Thanks, Sven


On Tue, Jun 07 2016 at 02:16:03 PM, Paul Colquhoun wrote:
> On Tue, 7 Jun 2016 13:42:11 sven.garb...@evall.org wrote:
>> Hi,
>> 
>> xdg-open opens a pdf file with Gimp. I have the following configuration:
>> > xdg-mime query filetype tmp/arulesViz.pdf
>> 
>> application/pdf
>
>
> This tells you what the mime type of the file is, not what opens it.
>
> Try running:
>   xdg-mime query default application/pdf
>
> to see what the default application is for that mime type.
>
> Then you can run
>   xdg-mime default insert-your-application-here application/pdf
>
> to change the application that opens that mime type.




Re: [gentoo-user] xdg-open opens pdf with gimp

2016-06-07 Thread Paul Colquhoun
On Tue, 7 Jun 2016 13:42:11 sven.garb...@evall.org wrote:
> Hi,
> 
> xdg-open opens a pdf file with Gimp. I have the following configuration:
> > xdg-mime query filetype tmp/arulesViz.pdf
> 
> application/pdf


This tells you what the mime type of the file is, not what opens it.

Try running:
  xdg-mime query default application/pdf

to see what the default application is for that mime type.

Then you can run
  xdg-mime default insert-your-application-here application/pdf

to change the application that opens that mime type.


-- 
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/
  Asking for technical help in newsgroups?  Read this first:
 http://catb.org/~esr/faqs/smart-questions.html#intro




[gentoo-user] xdg-open opens pdf with gimp

2016-06-07 Thread sven.garbade
Hi,

xdg-open opens a pdf file with Gimp. I have the following configuration:

> xdg-mime query filetype tmp/arulesViz.pdf 
application/pdf

but, 

> xdg-open tmp/arulesViz.pdf
Opening "tmp/arulesViz.pdf" with GNU Image Manipulation Program  
(application/pdf)

I also tried

> xdg-mime default zathura-pdf-poppler.desktop application/pdf

but xdg-open still chooses gimp.

Any ideas what goes wrong?

Thanks, Sven