Running xojo executables on Raspberry Pi at boot

[quote=358069:@Grzegorz Pawlik]I have checked many methods found on the web, but none of them worked with Xojo GUI (Desktop) apps.

That’s how I am doing it now (it works with Xojo GUI apps in the latest Raspbian Stretch):

  1. Go to /etc/xdg/autostart folder and create a new file there
sudo nano /etc/xdg/autostart/myapp.desktop
  1. Type the following (changing the Name to your app name and Exec to the path to your app):

[Desktop Entry] Type=Application Name=MyXojoApp Exec=sudo /path/to/your/xojo/GUI/app

  1. Enable your autostart app by selecting it in Desktop Session Settings:
lxsession-edit

No idea if it is a “correct” way – but it works ;)[/quote]
Thank you, @Grzegorz Pawlik . I can confirm this works with a 2019 r.1.1 standalone web app, whereas I couldn’t get the rc.local method to work. Tip: if you’re working locally with a display, typing

gksu pcmanfm

in terminal gets you a file manager with root privileges, making creation, editing, etc much more pleasant than sudo nano’ing in terminal.

Also note that the autostart file must have the extension ‘.desktop’. I initially thought that this was just an example name, but only .desktop files appear in lxsession.