# Running xojo executables on Raspberry Pi at boot

**URL:** <https://forum.xojo.com/t/running-xojo-executables-on-raspberry-pi-at-boot/40542>\
**Category:** Raspberry Pi\
**Created:** [November 7, 2017, 7:29am UTC](https://forum.xojo.com/t/running-xojo-executables-on-raspberry-pi-at-boot/40542 "2017-11-07T07:29:57Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Julia\_Truchsess](https://forum.xojo.com/user_avatar/forum.xojo.com/julia_truchsess/32/499_2.png) [@Julia\_Truchsess](https://forum.xojo.com/u/Julia_Truchsess)\
**Post date:** [October 8, 2019, 5:19pm UTC](https://forum.xojo.com/t/running-xojo-executables-on-raspberry-pi-at-boot/40542/10 "2019-10-08T17:19:41Z")

</div>

[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

```auto
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:

```auto
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

```auto
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.

---

_[View the full topic](https://forum.xojo.com/t/running-xojo-executables-on-raspberry-pi-at-boot/40542)._
