Auto start gui full screen
This commit is contained in:
@@ -6,16 +6,16 @@ Requires=graphical.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Environment="WAYLAND_DISPLAY=wayland-0"
|
||||
Environment="XDG_RUNTIME_DIR=/run/user/0"
|
||||
User=weston
|
||||
Group=weston
|
||||
Environment="WAYLAND_DISPLAY=wayland-1"
|
||||
Environment="XDG_RUNTIME_DIR=/run/user/1000"
|
||||
Environment="RUST_LOG=info"
|
||||
ExecStartPre=/bin/sleep 3
|
||||
ExecStart=/usr/bin/gui
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
WatchdogSec=30
|
||||
|
||||
# Resource limits
|
||||
MemoryMax=256M
|
||||
CPUQuota=80%
|
||||
|
||||
@@ -1,2 +1,16 @@
|
||||
# Disable xwayland for embedded system
|
||||
PACKAGECONFIG:remove = "xwayland"
|
||||
PACKAGECONFIG:remove = "xwayland"
|
||||
|
||||
# Configure Weston for kiosk mode - single fullscreen app
|
||||
do_install:append() {
|
||||
# Use kiosk shell for single-app embedded system
|
||||
sed -i '/^\[core\]/a shell=kiosk-shell.so' ${D}${sysconfdir}/xdg/weston/weston.ini
|
||||
|
||||
# Disable desktop shell features
|
||||
echo "" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
||||
echo "[shell]" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
||||
echo "panel-position=none" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
||||
echo "locking=false" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
||||
echo "background-type=solid" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
||||
echo "background-color=0xff000000" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
||||
}
|
||||
Reference in New Issue
Block a user