A little background first, the B4X code runs on dedicated linux terminals that I sell. So when the terminal is powered up, after the desktop loads, the B4X application is started.
Currently I am running Ubuntu Mate (the boards are just commercial single board computers, not raspberry pi's). In Mate there is a resource to create a startup application. Basically I think its creating a cron job with the @reboot syntax, my theory at least. The startup application is just a terminal command. I modified the bashrc file to include a separate bash script to run the B4X application. So when the terminal opens it runs my application. From a users stand point, what the users sees is the Mate desktop appear, then a terminal window open, then the B4X application launching. My question is this the cleanest way of doing this. Ideally, the B4X application would launch as soon as the desktop launches, without the delay of the terminal windows opening. I cannot figure out a way of a direct launch from the desktop to the B4X application, I have tried numerous methods. My theory is that this is an issue with running Java and JavaFX from a desktop shortcut, and the only way to launch is from a terminal window. When I was using the Windows CE platform, I could modify the windows registry, so when windows CE started, the desktop would never appear and my application would just launch, a bit cleaner I thought. I am open to suggestions or advice on this, or maybe this is just the only way to do this. There are probably way smarter linux users out there than me.
Currently I am running Ubuntu Mate (the boards are just commercial single board computers, not raspberry pi's). In Mate there is a resource to create a startup application. Basically I think its creating a cron job with the @reboot syntax, my theory at least. The startup application is just a terminal command. I modified the bashrc file to include a separate bash script to run the B4X application. So when the terminal opens it runs my application. From a users stand point, what the users sees is the Mate desktop appear, then a terminal window open, then the B4X application launching. My question is this the cleanest way of doing this. Ideally, the B4X application would launch as soon as the desktop launches, without the delay of the terminal windows opening. I cannot figure out a way of a direct launch from the desktop to the B4X application, I have tried numerous methods. My theory is that this is an issue with running Java and JavaFX from a desktop shortcut, and the only way to launch is from a terminal window. When I was using the Windows CE platform, I could modify the windows registry, so when windows CE started, the desktop would never appear and my application would just launch, a bit cleaner I thought. I am open to suggestions or advice on this, or maybe this is just the only way to do this. There are probably way smarter linux users out there than me.