labwc/clients/lab-exit
01micko ff45d1b363 clients/: add lab-exit to display an exit window with labnag.
closes #917
Summary follows:
- src/menu/menu.c: add `leave` action to call lab-exit.
- clients/meson.build: add install routine for lab-exit
and lab-sensible-terminal.
- meson.build remove lab-sensible-terminal routine re the comment.
- po/labwc.pot: rebuild with new xgettext commands.
- po/it.po: add translations for lab-exit and edit my email.
- CONTRIBUTING.md#translations: modify the instructions for coders as
two xgettext commands are needed since we now have two GUI facing
languages that have translatable strings.
2025-08-30 14:41:20 +10:00

27 lines
471 B
Bash
Executable file

#!/bin/sh
# logout with labnag
export TEXTDOMAIN=labwc
export OUTPUT_CHARSET=UTF-8
alias _='gettext'
QUESTION=$(_ 'Are you sure you want to quit Labwc?')
YES=$(_ 'Yes')
NO=$(_ 'No')
labnag \
-f "mono 10"\
-m "$QUESTION"\
-Z " $YES " "labwc -e"\
-Z " $NO "\
--background 00ffff\
--button-background 00ffff\
--border 00ccccaa\
--text 000000\
--button-text 000000\
--button-gap 8\
--button-margin-right 0\
--button-padding 5\
--button-border-size 2\
-t 60