kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #38468
Re: [PATCH] Fixup documentation path for macOS scripting plugins
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@xxxxxxxxx>
-
Date:
Wed, 28 Nov 2018 09:43:30 -0500
-
In-reply-to:
<CAJXA3hSj=Ct9Jc50vZWct8jFE5sJ_bWQxf1=1fbOSW8LPtzunQ@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1
Adam,
I merged your patch.
Thanks,
Wayne
On 11/27/2018 8:59 AM, Adam Wolf wrote:
> How's this?
>
> Adam
>
> On Mon, Nov 26, 2018 at 9:52 PM Andrew Lutsenko <anlutsenko@xxxxxxxxx
> <mailto:anlutsenko@xxxxxxxxx>> wrote:
>
> That sounds good to me.
> There is also that MacOS security feature that turns
> /Applications/... paths into some obfuscated virtual paths (as seen
> by the app, even though those dirs don't exist) and that may spook
> an uninformed average user. So I would also add that it's best to
> stick to the paths that are within user directory ($HOME on
> linux/mac, %APPDATA% on Win).
>
> On Mon, Nov 26, 2018 at 7:24 PM Adam Wolf
> <adamwolf@xxxxxxxxxxxxxxxxxxxx
> <mailto:adamwolf@xxxxxxxxxxxxxxxxxxxx>> wrote:
>
> Hmm. Interesting. I don't know what package ever had
> /Applications/kicad/Kicad/Contents/SharedSupport/scripting/plugins
> missing a .app in /Applications/kicad.app/, but the Mac package
> has had a lot of history.
>
> What's the next step here... add some words saying "Modern macOS
> installs likely have them at XXXXX, but if it doesn't seem like
> these are right, try running
>
> import pcbnew
> print pcbnew.PLUGIN_DIRECTORIES_SEARCH
>
> in the scripting console"?
>
> Adam
>
> On Mon, Nov 26, 2018 at 9:03 PM Andrew Lutsenko
> <anlutsenko@xxxxxxxxx <mailto:anlutsenko@xxxxxxxxx>> wrote:
>
> Hi Adam,
> Please note that current paths are actually correct for
> previous versions of MacOS. I'm not sure exactly when the
> change happened but the paths you are suggesting are valid
> for latest versions of MacOS and kicad.
> Maybe it's worth to add a note stating that these paths are
> correct for latest versions of the software.
> Also there is a simple way to get all valid paths from kicad
> itself, I have it described in the wiki for my plugin here
> https://github.com/openscopeproject/InteractiveHtmlBom/wiki/Installation
>
> > Above list may be out of date or inaccurate for your OS
> version/distribution. You can get full list of directories
> that pcbnew is scanning for plugins by running this in
> scripting console:
>
> import pcbnew
> print pcbnew.PLUGIN_DIRECTORIES_SEARCH
>
>
> Having that in the docs would be useful too.
>
> Regards,
> Andrew
>
> On Mon, Nov 26, 2018 at 6:35 PM Adam Wolf
> <adamwolf@xxxxxxxxxxxxxxxxxxxx
> <mailto:adamwolf@xxxxxxxxxxxxxxxxxxxx>> wrote:
>
> Fixes https://bugs.launchpad.net/kicad/+bug/1789960.
>
> Adam
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> <mailto: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