kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #33052
Re: Kicad from scratch: pcbnew: cannot use ~/ for home directory for KISYS3DMOD path?
Hi, Joerg!
On 2018-01-09 18:49, Jörg Hermann wrote:
> Is this behaviour somehow related to https://bugs.launchpad.net/kicad/+bug/1677545
Maybe... remotely.
KISYS3DMOD's default path, as well as it's handling, seems to be off a bit.
My question is: Is Kicad supposed to work with ~/... in general or - for some very good reason - needs the expanded (absolute) /home/<username>/... ?
If ~/... is an acceptable pathname, then there is a bug to hunt in the latest git.
In other words: Where is the code where file + pathnames are abstracted to make it work across all platforms in this case?
kicad.git/common/env_paths.cpp ?
Regards,
Clemens
>
>> On 9. Jan 2018, at 15:38, Nick Østergaard <oe.nick@xxxxxxxxx <mailto:oe.nick@xxxxxxxxx>> wrote:
>>
>> If you really want to start from scratch then you may also want to remove the ~/.cache/kicad (or there about, I am not on linux right now). But it is not as important, it only contains the scene graph model cache. (Or what ever it is really called)
>>
>> 2018-01-09 14:55 GMT+01:00 Clemens Koller <cko@xxxxxxxxx <mailto:cko@xxxxxxxxx>>:
>>
>> Hi!
>>
>> I am testing latest-git on Linux, collecting some UX issues when starting Kicad from scratch (*):
>>
>> On a new installation, I cannot execute 3D Shape Downloader out of the box. KISYS3DMOD points to ~/SW/share/kicad/modules/packages3d after installation to ~/SW/share/kicad/bin.
>>
>> This folder doesn't exist yet at this point, but could be created by Kicad.
>> (The behaviour is still the same even when ~/SW/share/kicad/modules/packages3d was created in advance.)
>>
>> The 3D Shape Downloader then tells me:
>> "It's not possible to write in the selected directory. Please choose anothe one."
>>
>> When I press "Default 3D Path", I would expect that it resets the path to a default working one,
>> but an message tells me that "KISYS3DMOD path not defined , or not existing".
>>
>> Anyway it's possible to hit the Next-> button just to realize than after an hour of downloading, the download is going to fail -> Duh!
>> When I replace the ~/ with /home/admin/ everything seems to work.
>> Is there a reason that the ~ cannot be used from within Kicad?
>>
>> Regards,
>>
>> Clemens
>>
>> (*) Kicad rebuilt from src and started from scratch after rm ~/.config/kicad
>>
>>
>> ---
>> Application: kicad
>> Version: (2018-01-08 <tel:%282018-01-08> revision 0e9c8a423)-master, release build
>> Libraries:
>> wxWidgets 3.0.3
>> libcurl/7.57.0 OpenSSL/1.1.0g zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) libssh2/1.8.0 nghttp2/1.29.0
>> Platform: Linux 4.14.12-1-ARCH x86_64, 64 bit, Little endian, wxGTK
>> Build Info:
>> wxWidgets: 3.0.3 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
>> Boost: 1.66.0
>> Curl: 7.57.0
>> Compiler: GCC 7.2.1 with C++ ABI 1011
>>
>> Build settings:
>> USE_WX_GRAPHICS_CONTEXT=OFF
>> USE_WX_OVERLAY=OFF
>> KICAD_SCRIPTING=ON
>> KICAD_SCRIPTING_MODULES=ON
>> KICAD_SCRIPTING_WXPYTHON=ON
>> KICAD_SCRIPTING_ACTION_MENU=ON
>> BUILD_GITHUB_PLUGIN=ON
>> KICAD_USE_OCE=ON
>> KICAD_SPICE=ON
>
>
>
> _______________________________________________
> 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
>
Follow ups
References