Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4803

Beginners • Re: is a smart calendar a suitable beginner project? Touchscreen compatibility?

$
0
0
So I think I got the system to reliably boot up the calendar after something like an update and reboot from SSH session. I do have network-chucks recommended unattended upgrades on, but that doesn't seem to update everything, at least not weekly.

Found that it took a little bit of metaphorical duct tape to get this to work, so I'll post the solution in case somebody else finds it useful.

As the tutorial above suggests, the right way to do this now, is adding a line to the autostart section of the wayfire file, with

Code:

sudo nano .config/wayfire.ini
However, I ran into a couple of issues. For some reason, my system won't load the URL if I define it in the file, but I was able to work around this, by setting the desired URL as a custom homepage URL directly in Firefox settings. So my command looked like

Code:

Firefox = firefox --kiosk --noerrdialogs --disable-infobars --no-first-run 
As I learned the hard way, it's very important for the Firefox after the = to be lowercase!

Unfortunately, this still resulted in Firefox asking me if I wanted to load a new session, or the previous one, after rebooting from SSH. (Easy, but not ideal, as I ultimately don't want peripherals connected to the calendar pi.) Initially I set Firefox to purge history on closure, but this didn't seem to resolve it. I got it working by changing the Firefox setting to never remember history.

Hope this ends up being helpful if somebody else's googling around :-)

Statistics: Posted by Accidental_nerd — Mon Feb 12, 2024 3:38 am



Viewing all articles
Browse latest Browse all 4803

Trending Articles