AndrewPayton
Posts: 1
Joined: Fri Sep 04, 2020 9:48 am

Chromium autostart in fullscreen

Fri Sep 04, 2020 9:53 am

The autostart kiosk command works great, but does anyone know how to exit back to the Raspbian desktop? You can Alt-F4 to close the Chromium full-screen browser in Kiosk mode, but it doesn't take you to the desktop--it's just a black screen. The only way to get back to a Raspbian desktop is to right click on the black screen to start a Terminal emulation and then change the autostart filename so it doesn't run the kiosk mode on reboot. Would be great if you could just exit to the desktop. Any help for this NOOB is appreciated.

klricks
Posts: 7278
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Chromium autostart in fullscreen

Fri Sep 04, 2020 2:40 pm

AndrewPayton wrote:
Fri Sep 04, 2020 9:53 am
The autostart kiosk command works great, but does anyone know how to exit back to the Raspbian desktop? You can Alt-F4 to close the Chromium full-screen browser in Kiosk mode, but it doesn't take you to the desktop--it's just a black screen. The only way to get back to a Raspbian desktop is to right click on the black screen to start a Terminal emulation and then change the autostart filename so it doesn't run the kiosk mode on reboot. Would be great if you could just exit to the desktop. Any help for this NOOB is appreciated.
Make sure your autostart file contains these 2 lines:

Code: Select all

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

User avatar
Botspot
Posts: 1533
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: Chromium autostart in fullscreen

Fri Sep 04, 2020 4:45 pm

klricks wrote:
Fri Sep 04, 2020 2:40 pm
AndrewPayton wrote:
Fri Sep 04, 2020 9:53 am
The autostart kiosk command works great, but does anyone know how to exit back to the Raspbian desktop? You can Alt-F4 to close the Chromium full-screen browser in Kiosk mode, but it doesn't take you to the desktop--it's just a black screen. The only way to get back to a Raspbian desktop is to right click on the black screen to start a Terminal emulation and then change the autostart filename so it doesn't run the kiosk mode on reboot. Would be great if you could just exit to the desktop. Any help for this NOOB is appreciated.
Make sure your autostart file contains these 2 lines:

Code: Select all

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
Yeah that's my guess as well.
Raspberry Pi OS Buster uses a global autostart file - /etc/xdg/lxsession/LXDE-pi/autostart, but Raspbian Stretch used a user-specific file, located at /home/pi/.config/lxsession/LXDE-pi/autostart.
If the OP found an outdated tutorial, it very likely told them to edit .config/lxsession/LXDE-pi/autostart. The OP must have created that file, as it doesn't exist by default.
When .config/lxsession/LXDE-pi/autostart exists, LXDE ignores the global autostart file.
So if you delete .config/lxsession/LXDE-pi/autostart, LXDE will again use the global one once again.

To the OP:
  • Either make your autostart changes directly to /etc/xdg/lxsession/LXDE-pi/autostart, and don't create .config/lxsession/LXDE-pi/autostart, or...
  • ...Copy the contents of /etc/xdg/lxsession/LXDE-pi/autostart into .config/lxsession/LXDE-pi/autostart so the desktop will launch behind Chromium like it's supposed to.
Want to run Minecraft Java on your RPi? Easiest way is with Pi-Apps - just click Install.
https://github.com/Botspot/pi-apps
Pi-Apps also includes Zoom, Visual Studio, Tor browser, Windows 10 theme, and 33 more.
Over 50,000 users!

User avatar
GonzoGonzoGonzo
Posts: 10
Joined: Mon Oct 05, 2020 2:10 am

Re: Chromium autostart in fullscreen

Sat Oct 17, 2020 7:15 am

Botspot wrote:
Fri Sep 04, 2020 4:45 pm
Raspberry Pi OS Buster uses a global autostart file - /etc/xdg/lxsession/LXDE-pi/autostart, but Raspbian Stretch used a user-specific file, located at /home/pi/.config/lxsession/LXDE-pi/autostart.
If the OP found an outdated tutorial, it very likely told them to edit .config/lxsession/LXDE-pi/autostart. The OP must have created that file, as it doesn't exist by default.
When .config/lxsession/LXDE-pi/autostart exists, LXDE ignores the global autostart file.
So if you delete .config/lxsession/LXDE-pi/autostart, LXDE will again use the global one once again.
This is incredibly helpful and I haven't managed to find it elsewhere - thanks for sharing this!

User avatar
Botspot
Posts: 1533
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: Chromium autostart in fullscreen

Sat Oct 17, 2020 12:43 pm

GonzoGonzoGonzo wrote:
Sat Oct 17, 2020 7:15 am
Botspot wrote:
Fri Sep 04, 2020 4:45 pm
Raspberry Pi OS Buster uses a global autostart file - /etc/xdg/lxsession/LXDE-pi/autostart, but Raspbian Stretch used a user-specific file, located at /home/pi/.config/lxsession/LXDE-pi/autostart.
If the OP found an outdated tutorial, it very likely told them to edit .config/lxsession/LXDE-pi/autostart. The OP must have created that file, as it doesn't exist by default.
When .config/lxsession/LXDE-pi/autostart exists, LXDE ignores the global autostart file.
So if you delete .config/lxsession/LXDE-pi/autostart, LXDE will again use the global one once again.
This is incredibly helpful and I haven't managed to find it elsewhere - thanks for sharing this!
Thanks! :)
BTW nearly al Linux config files are set up this way - you have a global config file usually located in /etc, and if you want to make changes to it but don't have root privileges, you copy the global to the personal and make your changes there.
Want to run Minecraft Java on your RPi? Easiest way is with Pi-Apps - just click Install.
https://github.com/Botspot/pi-apps
Pi-Apps also includes Zoom, Visual Studio, Tor browser, Windows 10 theme, and 33 more.
Over 50,000 users!

Return to “Beginners”