kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #18179
Re: kicad pdf documentation gets open in Gimp
yes it does.
--
Fabrizio Tappero
On Tue, May 5, 2015 at 11:11 PM, Nick Østergaard <oe.nick@xxxxxxxxx> wrote:
> Does xdg-open on a pdf open evince for you?
> Den 05/05/2015 23.10 skrev "Fabrizio Tappero" <fabrizio.tappero@xxxxxxxxx
> >:
>
>> In my machine:
>> $ xdg-mime query default application/pdf
>> evince.desktop
>>
>> but kicad still uses gimp. Am I missing something?
>>
>> thanks
>> fabrizio
>>
>>
>> --
>> Fabrizio Tappero
>>
>>
>> On Tue, May 5, 2015 at 10:59 PM, Nick Østergaard <oe.nick@xxxxxxxxx>
>> wrote:
>>
>>> Use xdg-open
>>> Den 05/05/2015 22.55 skrev "Fabrizio Tappero" <
>>> fabrizio.tappero@xxxxxxxxx>:
>>>
>>>> Hi Stefan,
>>>> actually /usr/share/applications/defaults.list among one gazilion lines
>>>> says:
>>>> application/pdf=evince.desktop;atril.desktop
>>>>
>>>> I am pretty sure I could fix the problem. The thing is, it will not
>>>> solve the problem for other people in the same situation.
>>>>
>>>> Any idea for a solution implementable in kicad? a good idea?
>>>>
>>>> fabrizio
>>>>
>>>>
>>>> --
>>>> Fabrizio Tappero
>>>>
>>>>
>>>> On Tue, May 5, 2015 at 12:54 PM, Stefan Hepp <stefan@xxxxxxxxxxx>
>>>> wrote:
>>>>
>>>>> Hi!
>>>>>
>>>>> This is truly an old issue, and I had the same issue with other linux
>>>>> programs (Opera, Firefox,..) on Kubuntu.
>>>>>
>>>>> I assume the "issue" is that kicad uses the standard mechanism to
>>>>> determine the default viewer, which is not kept in sync by KDE (which is
>>>>> the default desktop on Mint, I think).
>>>>>
>>>>> You will find that the default pdf 'viewer' is set to Gimp in
>>>>>
>>>>> /usr/share/applications/defaults.list
>>>>>
>>>>> The list of applications available to open any mimetype seems to come
>>>>> from 'mimeinfo.cache' in the same directory. No idea who came up with those
>>>>> defaults and why KDE does not update them, but it seems to be the same
>>>>> issue in all Ubuntu-based distributions (or even Debian?).
>>>>>
>>>>>
>>>>> You can set the default viewer either by creating a file
>>>>>
>>>>> kate ~/.local/share/applications/defaults.list
>>>>>
>>>>> to contain:
>>>>>
>>>>> [Default Applications]
>>>>> application/pdf=kde4/okular.desktop;
>>>>>
>>>>>
>>>>> You can also achieve the same by running
>>>>>
>>>>> mimeopen -d dummy.pdf
>>>>>
>>>>> which will ask you for your preferred viewer and store it to your
>>>>> defaults.list.
>>>>> (If you choose 'Other', you need to enter a program name like
>>>>> 'okular', and it will create a new .desktop file, which is why I prefer
>>>>> editing the defaults.list file myself, or/and add my favorite pdf viewer to
>>>>> my local mimeinfo.cache first).
>>>>>
>>>>>
>>>>> Cheers,
>>>>> Stefan
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 05.05.2015 00:25, Fabrizio Tappero wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> In my Linux Mint (as I supspect in many Debian distros) any pdf (via
>>>>>> double click) gets open with the default Document Viewer, as it
>>>>>> should.
>>>>>> but kicad insist with Gimp.
>>>>>>
>>>>>> this is a very old issue and despite the possibility of choosing a pdf
>>>>>> reader inside kicad, it seems strange to me that in 2015 there is
>>>>>> still
>>>>>> no way to tell linux not to read a pdf with gimp.
>>>>>>
>>>>>> Does anybody know how to work around this proble?
>>>>>>
>>>>>> Thanks
>>>>>> Fabrizio
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mailing list: https://launchpad.net/~kicad-developers
>>>>>> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
>>>>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>>>>> More help : https://help.launchpad.net/ListHelp
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~kicad-developers
>>>>> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>>>> More help : https://help.launchpad.net/ListHelp
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~kicad-developers
>>>> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>>> More help : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>
References