Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 21-01-2024, 09:50   #1
Registered User

Join Date: Apr 2012
Posts: 59
how on earth do I start opencpn on boot Rpi 5

Hello
I can't believe I haven't found the answer to this yet. I am using V5.8.4-2 on a new Rpi 5 with a flatpak install. I am trying to get opencpn to start on boot. I can run it from the command line with this:

/usr/bin/flatpak run --branch=stable --arch=aarch64 --command=opencpn.sh org.opencpn.OpenCPN

However trying this from cron with @reboot doesn't work. I have tried creating a simple script with the same command and running it from cron and rc.local.
Is there an faq I have missed?
jimseng is offline   Reply With Quote
Old 21-01-2024, 10:13   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: how on earth do I start opencpn on boot Rpi 5

The way you try to do it has no chance of working as you need to start it in the desktop session of your user.
You don't say what desktop environment you are using, but the usual way to do it is to simply place a .desktop file in ~/.config/autostart which in this case looks something like this:

Code:
$ cat ~/.config/autostart/OpenCPN.desktop
Code:
[Desktop Entry]
Type=Application
Exec=flatpak run org.opencpn.OpenCPN
And yes, the internet is full of instructions like https://askubuntu.com/questions/4832...cally-on-login
nohal is offline   Reply With Quote
Old 21-01-2024, 10:59   #3
Registered User

Join Date: Apr 2012
Posts: 59
Re: how on earth do I start opencpn on boot Rpi 5

Thanks. That's done it.
jimseng is offline   Reply With Quote
Reply

Tags
enc, opencpn


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Perkins 4108 won’t start on start battery will start on house Lightssurfer Marine Electronics 18 18-02-2024 12:23
World Chart missing/opencpn/rPi dugsmith98 OpenCPN 1 01-03-2017 17:05
Rpi OpenCPN System - recommendations geoffr OpenCPN 17 01-02-2017 10:45
Google Earth plugin doesn't start Google Earth balticsailor OpenCPN 11 02-07-2015 03:07

Advertise Here


All times are GMT -7. The time now is 06:54.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.