Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto load Fruitbox on boot - rc.local deprecated (workaround) #60

Open
Harry-Badger opened this issue Jun 22, 2024 · 0 comments
Open

Auto load Fruitbox on boot - rc.local deprecated (workaround) #60

Harry-Badger opened this issue Jun 22, 2024 · 0 comments

Comments

@Harry-Badger
Copy link

Model: Raspberry Pi 4B 4GB
OS: Raspberry PI OS 32-bit Full (Linux 11 Bullseye)
Version: Fruitbox v2
Skin: skins/JaysIndieglo

I am trying to get Fruitbox to auto start on boot. The user guide suggests editing and adding a couple of lines to the rc.local file.

sudo nano /etc/rc.local

However, the drawbacks of this are that rc.local is deprecated and is executed before the desktop starts.

I have personally not got this to work, but I had more success with autostart. E.g.

sudo nano /home/.config/autostart/Fruitbox.desktop

[Desktop Entry]
Type=Application
Name=Fruitbox
Exec=/home/pi/fruitbox/fruitbox

The niggle I found with this method was Fruitbox would start whilst the desktop was still loading. It would end up in a windowed view rather than max full screen (1920x1080). This truncated the Fruitbox UI at the bottom because of the desktop taskbar and the Fruitbox window title bar. Shutting down Fruitbox and restarting, would see it run properly in full screen mode with no borders or taskbar

My workaround is:

  • Create a shell script called /home/pi/fruitbox.sh
!#/bin/bash
cd /home/pi/fruitbox
sleep 5
./fruitbox

The sleep 5 will give the PI Desktop GUI enough time to load before running Fruitbox

  • Make the shell script executable

sudo chmod +x fruitbox.sh

  • Edit the autostart file fruitbox.sh

sudo nano /home/.config/autostart/fruitbox.desktop

[Desktop Entry]
Type=Application
Name=Fruitbox
Exec=sh /home/pi/fruitbox.sh
  • Right click taskbar and edit panel settings.
  • Under the Advanced tab, uncheck Make window manager treat the panel as dock and Reserve space, and not covered by maximised windows
  • Check the box for Minimise panel when not in use
  • Set Size to 0 pixels

With this in place, I now have Fruitbox auto loading seamless on boot

Hope this helps anyone with getting Fruitbox to auto start on boot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant