nfdi4plants / arc-validate

Home of all the tools and libraries to create and run validation of ARCs
https://nfdi4plants.github.io/arc-validate/
MIT License
3 stars 2 forks source link

Default path for storing global ARC config #75

Open HLWeil opened 6 months ago

HLWeil commented 6 months ago

ArcCommander currently uses $appdata$/DataPLANT

See source code:

    let tryGetGlobalConfigPath () =
        let log = Logging.createLogger "IniDataTryGetGlobalConfigPathLog"
        // most of this part only remains for legacy reasons. Config file should not be downloaded and placed by the user (as before) but installed by the ArcCommander itself.
        let getFolderPath specialFolder inOwnFolder inCompanyFolder newName = 
            Environment.GetFolderPath(specialFolder, Environment.SpecialFolderOption.DoNotVerify)
            |> fun x -> 
                if inOwnFolder then 
                    Path.Combine(x, "ArcCommander", "config") 
                elif inCompanyFolder && (not newName) then
                    Path.Combine(x, "DataPLANT", "ArcCommander", "config")
                elif inCompanyFolder && newName then
                    Path.Combine(x, "DataPLANT", "ArcCommander", "ArcCommander.config")
                else 
                    Path.Combine(x, "config")
kMutagene commented 1 week ago

Is this still the case @HLWeil? changing this requires a huge amount of tests to be adapted so pls confirm so i can keep my sanity

HLWeil commented 1 week ago

No Idea what the context of this issue was, but we did not change this path since the issue was posted.

HLWeil commented 1 week ago

@kMutagene