mkpaz / atlantafx

Modern JavaFX CSS theme collection with additional controls.
https://mkpaz.github.io/atlantafx
MIT License
865 stars 66 forks source link

SceneBuilder path #42

Closed ennerf closed 1 year ago

ennerf commented 1 year ago

I just saw the SceneBuilder integration. That's nice 👍 The current version is unfortunately broken on Windows and macOS because the directory structure does not match the expected lib/app directory. It'd probably also be good to have it intitialized to the standard installation path.

image

I just checked multiple systems and the default installation looks like this:

Windows

var installDir = System.getProperty("user.home") + "/AppData/Local/SceneBuilder/";
var cfgDir =  installDir + "app/";
var cfgFile = cfgDir  + "SceneBuilder.cfg"

macOS

var installDir = "/Applications/SceneBuilder.app/";
var cfgDir =  installDir + "Contents/app/";
var cfgFile = cfgDir  + "SceneBuilder.cfg"

Ubuntu

var installDir = "/opt/scenebuilder/";
var cfgDir =  installDir + "lib/app/";
var cfgFile = cfgDir  + "SceneBuilder.cfg"
mkpaz commented 1 year ago

Ow. Yeah, that's jpackage app image format. It totally slipped my mind. Thanks for noticing.