[welcome] eos-reisub: added option --status; fixed welcome's autortart

This commit is contained in:
manuel
2026-07-18 12:55:07 +03:00
parent 34c8564cde
commit 59779853fa
2 changed files with 5 additions and 3 deletions
+3
View File
@@ -33,6 +33,7 @@ Main() {
case "$1" in
-e | --enable) [ -e $reisub_file ] || echo 'kernel.sysrq=1' | pkexec tee $reisub_file > /dev/null ;;
-d | --disable) [ -e $reisub_file ] && pkexec rm -f $reisub_file ;;
--status | "") ;;
--edit-config) EditConfig ;;
-h | --help) Help 0 ;;
*) Fail "\$1 = '$1'" ;;
@@ -52,6 +53,8 @@ Options:
-e, --enable Enable REISUB support.
-d, --disable Disable REISUB support.
--edit-config Edit the configuration file.
--status Show the state of REISUB setting.
This is the default.
-h, --help This help.
EOF
[ "$1" ] && exit "$1"
+2 -3
View File
@@ -5,9 +5,8 @@ Name=Welcome
Comment=EndeavourOS Welcome launcher
Comment[fi]=EndeavourOS:n Welcome-ohjelman käynnistin
Comment[sk]=Spúšťač privítania v systéme EndeavourOS
Exec=eos-welcome --once
# Icon=/usr/share/endeavouros/endeavouros-icon.png
Icon=/usr/share/endeavouros/endeavouros-icon.avif
Exec=eos-welcome
Icon=endeavouros-icon
# StartupNotify=false
# Terminal=False
Hidden=false