← Back to team overview

kicad-developers team mailing list archive

Re: Most recently used path.

 

I would opt for a config file.  I can't decide between a single
MRU for each EDA_BASE_FRAME or one for each frame
in PGM_BASE; no doubt with the different ways people work
some would prefer one or the other.

While on the topic of paths and config files, a handful of users
have complained in the past few months about setting the
environment variables KISYSMOD and KISYS3DMOD
especially under MSWin.  Perhaps we should store the values
in the pcbnew config file and avoid the nightmare of setting
up environment variables? I use the command line on Linux so
it's no great hassle for me, but I once tried to look into how
various desktop managers handle environment variables and
I just gave up. The code which currently checks for an ENV
can instead check for the value in the config file and if the
config file has no value but the ENV does, use that value
(and write it to the config file). Naturally this scheme would
really annoy anyone who happens to set different values for
those variables for each project but I can't imagine that would
be a common use case. At any rate I expect this to be a
short-term tweak; the KISYS3DMOD should disappear once
the 3D model code is cleaned up and I imagine KISYSMOD
will eventually disappear as work progresses with eeschema.

- Cirilo


On Sat, Aug 22, 2015 at 12:38 AM, Wayne Stambaugh <stambaughw@xxxxxxxxx>
wrote:

> There has been a good bit of grumbling recently about the MRU path
> situation in KiCad.  The previous behavior was broken during the Kiway
> development.  There have been some patches but none of them solve the
> underlying problem that is there is MRU path code scattered all over the
> place which makes it difficult to maintain.  I'm going to try to fix
> this over the weekend and wanted some input.  One thing that will impact
> the code design is how MRU paths are stored.  There are two choices I
> can make in the design.  Save a MRU path for each window derived from
> EDA_BASE_FRAME or have a single MRU path for every main window frame
> stored in PGM_BASE.  My preference is the former since I tend to use
> specific sub-folders for storing board and schematic related stuff and I
> would prefer that Pcbnew remember my board related paths and Eeschema
> remembers my schematic related paths.  The other design decision is
> whether or not to save the MRU path in a config file rather than use the
> user's home path when no project is loaded or the current project path.
>  Any one else have any thoughts on this?
>
> Thanks,
>
> Wayne
>
> _______________________________________________
> 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