The last constraint is that we use extensively the...
# tornadofx
s
The last constraint is that we use extensively the
config
helper, so if the user didn't have to see that
conf
folder next to the executable that'd be great (i.e. if the executable was installed in Application for Mac OS X or Program Files for Windows)
c
I set my app up to resolve its conf folder using the appdirs library https://github.com/harawata/appdirs
s
so do you use this instead of the
config
helper in tornadofx?
Copy code
class MyApp : App(WelcomeView::class) {
    override val configBasePath: Paths.get("/etc/myapp/conf")
}
You would use this here, right?
c
override configBasePath, exactly
Copy code
override val configBasePath: Path = Paths.get(URI.create("file://" + AppDirsFactory.getInstance()
            .getUserConfigDir(
                    "digital-raw-sheet",
                    drsProperties.getString("coner-drs.version"),
                    "coner"
            )
))
AppDirsFactory comes from that lib
s
Cool, and so then we can just simply distribute a jar cross platform, and then tell our users to do whatever with it
so we wouldn't need any installers of any kind would we?
because that now the config and the executable are decoupled
c
That puts the config in a customary location for the runtime OS, decoupled from the executable path
s
sweet! 🙂
have you used IzPack by any chance?
c
No
s
No worries thanks 🙂
w
i use the javafx gradle plugin, and it works nicely