← Back to team overview

kicad-developers team mailing list archive

Re: pull default PDF viewer

 

Fabrizio,

Try replacing wxMimeTypeManager with wxLaunchDefaultApplication[1].  It
looks like this might be a better solution.  I would try it myself but
I'm at work and don't have access to a linux system.

Cheers,

Wayne

[1]:
http://docs.wxwidgets.org/trunk/group__group__funcmacro__misc.html#ga04038d4c78e4c111d018b8f82b2d66c3

On 6/7/2017 3:37 AM, Fabrizio Tappero wrote:
> Hi Wayne,
> it is indeed checked and it appears to be a 2 year old bug..... 
> 
> http://thread.gmane.org/gmane.comp.lib.wxwidgets.devel/162783 
> 
> Any idea of how to properly fix this problem?
> 
> cheers
> Fabrizio
> 
> 
> 
> On Tue, Jun 6, 2017 at 7:58 PM, Wayne Stambaugh <stambaughw@xxxxxxxxx
> <mailto:stambaughw@xxxxxxxxx>> wrote:
> 
>     On 6/6/2017 4:17 AM, Fabrizio Tappero wrote:
>     > ​Apologies for presenting this problem again and again
>     >
>     >  I think this topic came up too many times but (on my linux system) the
>     > default PDF viewer is not pulled correctly by kiCad. From the terminal:
>     >
>     > $ cat /usr/share/applications/defaults.list  | grep pdf
>     > application/pdf=xreader.desktop;evince.desktop;atril.desktop
> 
>     Is this the same as the mime type?  Look at another app such as
>     Thunderbird and see what app it uses to open PDF files.
> 
>     >
>     > but KiCad insist using Gimp.
> 
>     Is Preferences->PDF Viewer->System Default PDF Viewer in the KiCad
>     launcher checked?  If not, KiCad will attempt to fall back on some
>     reasonable default.  If it is checked, then there is most likely a bug
>     in wxMimeTypeManager which is used to determine the system command to
>     open a PDF file.
> 
>     >
>     > can anybody point me to the right direction? I am looking at preferences.cpp
> 
>     The source file you are looking for is common/gestfich.cpp.  The
>     function is OpenPDF().
> 
>     >
>     > Cheers
>     > Fabrizio​
>     >
>     >
>     > _______________________________________________
>     > Mailing list: https://launchpad.net/~kicad-developers
>     <https://launchpad.net/~kicad-developers>
>     > Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>     <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
>     > Unsubscribe : https://launchpad.net/~kicad-developers
>     <https://launchpad.net/~kicad-developers>
>     > More help   : https://help.launchpad.net/ListHelp
>     <https://help.launchpad.net/ListHelp>
>     >
> 
>     _______________________________________________
>     Mailing list: https://launchpad.net/~kicad-developers
>     <https://launchpad.net/~kicad-developers>
>     Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>     <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
>     Unsubscribe : https://launchpad.net/~kicad-developers
>     <https://launchpad.net/~kicad-developers>
>     More help   : https://help.launchpad.net/ListHelp
>     <https://help.launchpad.net/ListHelp>
> 
> 


Follow ups

References