References: <53533abe-e85d-7a42-49ce-465267997724@...515...> <44f51d16-5251-e257-263d-375d8e01abcb@...1227...> <7e5a1e02-9e3c-7386-ac77-d961ac2081af@...515...> From: =?UTF-8?Q?Samuli_Sepp=c3=a4nen?= Message-ID: <1feabf89-9fde-6157-cac2-367578f2096b@...515...> Date: Wed, 19 Oct 2016 19:30:20 +0300 MIME-Version: 1.0 In-Reply-To: Subject: Re: [Openvpn-devel] Proper location for user-specific OpenVPN configuration files used by OpenVPN-GUI? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable To: Selva Nair Cc: "openvpn-devel@lists.sourceforge.net" Il 19/10/2016 19:27, Selva Nair ha scritto: > > On Wed, Oct 19, 2016 at 11:46 AM, Samuli Sepp=C3=A4nen > wrote: > > The "%USERPROFILE%\Appdata" folder seems to be for "files generated > by applications" as SviMik said: > > > > > > > Those links refer to Windows XP's equivalent for $HOME\Appdata, but > the purpose of the directory has not changed afaik. > > Things are complicated a bit more by the fact that the %APPDATA% > environment variable points to %USERPROFILE%\Appdata\Roaming, not > %USERPROFILE%\Appdata as one might think. > > > In the first link above, MS says this: > > "CSIDL_PROFILE: The user's profile folder. A typical path is > C:\Documents and Settings\username. Applications should not create > files or folders at this level; they should put their data under the > locations referred to by CSIDL_APPDATA or CSIDL_LOCAL_APPDATA." > > > CSIDL_APPDATA goes into the roaming profile and is preferred if the > config is user specific and not at all machine-specific. If/when we go > this route, I think CSIDL_LOCAL_APPDATA would be more appropriate for > vpn configs.. Also we keep log files in there which could grow large and > adversely affect roaming performance. > > > > I think the idea Microsoft thought that users should not (have to) > touch the Appdata folder, and thus decided to hide it. > > > I vote for using a directory that is visible by default, at least > until the GUI can reliably import any config thrown at it. > > > Yes, we could revisit this and add code for migrating existing files if > a change in location is required. > > Selva +1. Lets just use what we have now: all the alternatives have their own=20 downsides. --=20 Samuli Sepp=C3=A4nen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock