rhysmorgan134 / react-carplay

MIT License
423 stars 65 forks source link

How to disable start on launch. #45

Closed eVisper closed 11 months ago

eVisper commented 11 months ago

Not really an issue so sorry, but I tried to find where the auto start on launch is and disable it but could not find it. How would I go about disabling it as i have other scripts i want to load first and i want to optionally start the carplay from there.

steelbrain commented 11 months ago

Are you using the dev server to launch the example? If so, I would recommend you build it once and serve the static files through an http server.

As a temp solution while you continue to run the dev server, run it with “BROWSER=none” in environment variables

eVisper commented 11 months ago

Are you using the dev server to launch the example? If so, I would recommend you build it once and serve the static files through an http server.

As a temp solution while you continue to run the dev server, run it with “BROWSER=none” in environment variables

I'm not really sure, I am newish to using Raspberry Pi's and everything that goes along with them. All I did was copy the github repository and run the setup-pi.sh

Looking through it now, could I just do a fresh install of React Carplay and delete this section in the start-up?

echo "Creating Autostart File"

sudo bash -c "echo '[Desktop Entry] Name=File Manager Exec=/home/$USER/Desktop/Carplay.AppImage Type=Application' > /etc/xdg/autostart/carplay.desktop"

rhysmorgan134 commented 11 months ago

close, you are best just running

sudo rm /etc/xdg/autostart/carplay.desktop

That will disable the auto launch.

eVisper commented 11 months ago

close, you are best just running

sudo rm /etc/xdg/autostart/carplay.desktop

That will disable the auto launch.

Worked great! Thank you so much for your help and all the work you and everyone else put into making this project!