Auto start gui full screen
This commit is contained in:
parent
da596241b9
commit
f457489375
6
Cargo.lock
generated
6
Cargo.lock
generated
@ -291,9 +291,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "async-channel"
|
name = "async-channel"
|
||||||
version = "2.3.1"
|
version = "2.4.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "89b47800b0be77592da0afd425cc03468052844aff33b84e33cc696f64e77b6a"
|
checksum = "16c74e56284d2188cabb6ad99603d1ace887a5d7e7b695d01b728155ed9ed427"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"concurrent-queue",
|
"concurrent-queue",
|
||||||
"event-listener-strategy",
|
"event-listener-strategy",
|
||||||
@ -3418,7 +3418,7 @@ dependencies = [
|
|||||||
"getrandom 0.3.3",
|
"getrandom 0.3.3",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
"rustix 1.0.7",
|
"rustix 1.0.7",
|
||||||
"windows-sys 0.59.0",
|
"windows-sys 0.52.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|||||||
@ -6,16 +6,16 @@ Requires=graphical.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=weston
|
||||||
Environment="WAYLAND_DISPLAY=wayland-0"
|
Group=weston
|
||||||
Environment="XDG_RUNTIME_DIR=/run/user/0"
|
Environment="WAYLAND_DISPLAY=wayland-1"
|
||||||
|
Environment="XDG_RUNTIME_DIR=/run/user/1000"
|
||||||
Environment="RUST_LOG=info"
|
Environment="RUST_LOG=info"
|
||||||
ExecStartPre=/bin/sleep 3
|
ExecStartPre=/bin/sleep 3
|
||||||
ExecStart=/usr/bin/gui
|
ExecStart=/usr/bin/gui
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
WatchdogSec=30
|
WatchdogSec=30
|
||||||
|
|
||||||
# Resource limits
|
# Resource limits
|
||||||
MemoryMax=256M
|
MemoryMax=256M
|
||||||
CPUQuota=80%
|
CPUQuota=80%
|
||||||
|
|||||||
@ -1,2 +1,16 @@
|
|||||||
# Disable xwayland for embedded system
|
# 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
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user