Blank lxpanel needed

The standard panel of LXDE - http://wiki.lxde.org/en/LXPanel
Locked
lrhorer
Posts: 1
Joined: Sat Apr 27, 2019 10:17 pm

Blank lxpanel needed

Post by lrhorer »

Hello all. This is my first post to this board. I am writing an embedded application that automatically starts a full screen application at boot. It's not the biggest deal, I suppose, but the LXDE desktop pops up before the application loads. This is not quite what I would prefer. I would rather pop up a blank screen, or better yet, a custom picture rather than the LXDE desktop. Of somewhat more concern is the fact during the few seconds prior to the launch of the application, the user could potentially do things in the desktop they should not really be doing. Thus, I would also like to have the taskbar totally disabled - as well as being invisibe, of course. Is there a simple means of doing these things? For this application, the desktop will never be used.
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: Blank lxpanel needed

Post by drooly »

lrhorer wrote: I am writing an embedded application that automatically starts a full screen application at boot.
am I correct in assuming that you don't need the whole desktop environment at all then?
I think it's possible to start only the application in question instead of the desktop.
On my system (I use startx instead of a display manager) that would be trivial.
or maybe scrap that.
I think your easiest bet is to make the openbox session the default login, then edit a few files to only start a browser (just an example) and nothing else:
~/.config/openbox/autostart

Code: Select all

firefox &
~/.config/openbox/rc.xml:

Code: Select all

<?xml version="1.0"?>
<openbox_config xmlns="http://openbox.org/3.4/rc">
  <mouse>
    <context name="Root">
      <mousebind action="Press" button="Right">
        <action name="ShowMenu">
          <menu>root-menu</menu>
        </action>
      </mousebind>
    </context>
  </mouse>
  <applications>
    <application name="*">
      <decor>no</decor>
      <maximized>true</maximized>
    </application>
  </applications>
</openbox_config>
~/.config/openbox/menu.xml:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://openbox.org/">
  <menu id="root-menu" label="Applications">
      <item label="Log Out">
    <action name="Exit">
      <prompt>yes</prompt>
    </action>
  </item>
  </menu>
</openbox_menu>
this should start firefox fullscreen, and when you exit firefox you still have an Exit button when you right-click the desktop (i just tried it without and had to reboot the machine). That would bring the user back to the login. if you consider that insecure, you have various options:
  • force autologin to that same session
  • remove all other session files from /usr/share/xsessions
  • remove the single <item>...</item> from menu.xml, and also the whole <mouse>...</mouse> section from rc.xml
a few links to help you along:
https://willhaley.com/blog/debian-fullscreen-gui-kiosk/
https://askubuntu.com/questions/132262/ ... kiosk-mode
https://askubuntu.com/questions/77191/h ... d-sessions
Locked