MIME-Version: 1.0 In-Reply-To: References: <53533abe-e85d-7a42-49ce-465267997724@...515...> <44f51d16-5251-e257-263d-375d8e01abcb@...1227...> <7e5a1e02-9e3c-7386-ac77-d961ac2081af@...515...> From: Selva Nair Date: Wed, 19 Oct 2016 12:27:50 -0400 Message-ID: Content-Type: multipart/alternative; boundary=001a113be29e8392c1053f3a4bde Subject: [Openvpn-devel] Fwd: Proper location for user-specific OpenVPN configuration files used by OpenVPN-GUI? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "openvpn-devel@lists.sourceforge.net" --001a113be29e8392c1053f3a4bde Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 --001a113be29e8392c1053f3a4bde Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Wed, Oct 19= , 2016 at 11:46 AM, Samuli Sepp=C3=A4nen <samuli@...515...> w= rote:
The "%USERPROFILE%\Appdata" fol= der seems to be for "files generated by applications" as SviMik s= aid:

<https://technet.microsoft.com/en-u= s/library/cc962614.aspx>
<https://technet.microsof= t.com/en-us/library/cc749104%28v=3Dws.10%29.aspx>

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% environmen= t 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:\Do= cuments and Settings\username. Applications should not create files or fold= ers 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. I= f/when we go this route, I think CSIDL_LOCAL_APPDATA would be more appropri= ate for vpn configs.. Also we keep log files in there which could grow larg= e and adversely affect roaming performance.
=C2= =A0

I think the idea Microsoft thought that users should not (have to) touch th= e 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 fi= les if a change in location is required.

Selva

--001a113be29e8392c1053f3a4bde--