Easiest Way To Start Xojo Desktop App at startup?

I’ve searched and tried several different suggestions on-line and none of worked for me. What is the easiest way to start a Xojo Desktop app on boot up?

I have a Pi 5, 4 and 2 3Bs running the latest Raspian version the each board.

Even if there is software I can install to do it, I’m fine with that. I’m not a Linux expert so I can’t insure the methods I’ve tried are correct or that I’m doing everything properly. I’m surprised there isn’t something simple in the Pi config tools to do this.

Suggestions?

BTW, my app works just fine when I launch it manually.

what did you try?

Possibilities:

  • A systemd service (perfect for xojo web apps on light or desktop raspberry)
  • A .desktop file (perfect for xojo destkop apps on desktop raspberry)
  • A excute line in the profile script (any)

Hi @Steve_Batson
Not sure what you tried but I believe systemd is what you are wanting to learn

Check out this tutorial and it should explain it for you:

systemd

Systemd is for service processes. OP is asking about a Desktop app in a Desktop environment.

1 Like

applications, scripts, or daemons :grin:

I just looked it up because I wasn’t sure. Most results are suggesting it’s for services.

anything really…

1 Like

Alright, whatever, if it works for you

old answer but still correct one:

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

and then add (and modify):

@/home/pi/Desktop/AmyApp/MyApp

save, reboot…

1 Like

After seen this topic App autostart , and see that it doesn’t work with last version of my new Pi, I look the net and found this solution.

For those who need to start their App at launch with Raspberry Pi, here is my method :

On the terminal : mkdir /home/<‘your home’>/bin

Copy the application inside

Now, on the terminal :
→ mkdir /home/<‘your home’>/.config/autostart
→ nano /home/<‘your home’>/.config/autostart/<‘your App Name’>.desktop (Like visualiseur.desktop)

insert the following content in the file <‘your App Name’>.desktop
[Desktop Entry]
Type=Application
Name=<‘your App Name’>
Exec=/home/<‘your home’>/bin/'<‘your App Name’>

Save the file using ‘Ctrl X’

reboot the Pi

2 Likes

I’m finding this a bit confusing as I read through it.

I’m assuming the <‘your home’> is the name of the folder you want to create and put the app in, is that true?

No that would be a bad assumption. You should Google “what is my home folder on Linux” so that you can learn more about this system.

3 Likes

I just did, so it’s the user folder…then the instructions should have read user instead of “Your Home” which is confusing since it’s in the Home Folder. That makes more sense to me.

This worked once the confusion was cleared up. Thanks @Tim_Parnell and Vlademar!

1 Like