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: Date: Wed, 19 Oct 2016 18:46:35 +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: Steffan Karger Cc: "openvpn-devel@lists.sourceforge.net" Il 19/10/2016 18:17, Steffan Karger ha scritto: > On 19 October 2016 at 17:14, Samuli Sepp=C3=A4nen wrot= e: >> SviMik had a very good point against using %APPDATA%: it is a hidden >> folder. At least on Windows 7 it seems to be hidden at the filesystem >> level, because no tools seem to see it. However, doing a >> >> cd $HOME\Appdata >> >> in Powershell will work, so the directory _is_ there even though it is >> invisble. >> >> I don't think we should put the configuration files into folder people >> will not find without extra tinkering. > > Maybe add an 'open config folder' button/link to openvpn-gui? > > -Steffan > Sounds reasonable. The "%USERPROFILE%\Appdata" folder seems to be for "files generated by=20 applications" as SviMik said: Those links refer to Windows XP's equivalent for $HOME\Appdata, but the=20 purpose of the directory has not changed afaik. Things are complicated a bit more by the fact that the %APPDATA%=20 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=20 C:\Documents and Settings\username. Applications should not create files=20 or folders at this level; they should put their data under the locations=20 referred to by CSIDL_APPDATA or CSIDL_LOCAL_APPDATA." I think the idea Microsoft thought that users should not (have to) touch=20 the Appdata folder, and thus decided to hide it. I vote for using a directory that is visible by default, at least until=20 the GUI can reliably import any config thrown at it. --=20 Samuli Sepp=C3=A4nen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock