From b58d58748a1543564043a0d7c00fda36f5f21f1a Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sat, 7 Mar 2020 02:23:15 +0100 Subject: [PATCH] yautostart,mwelcome update --- bin/mwelcome | 2 +- bin/yautostart | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/mwelcome b/bin/mwelcome index 28a4884..d871dd2 100755 --- a/bin/mwelcome +++ b/bin/mwelcome @@ -73,7 +73,7 @@ OSVERSION=$(lsb_release -r | awk '{print $2}') OSCODE=$(lsb_release -c | awk '{print $2}') FONT="foreground='dark green' font='14'" -values=($(yad --window-icon=distributor-logo-mabox --center --undecorated --buttons-layout="edge" --borders=20 --width=520 --height=380 \ +values=($(yad --window-icon=distributor-logo-mabox --center --buttons-layout="edge" --borders=20 --width=520 --height=380 \ --image=/usr/share/icons/mabox_trans_64.png --image-on-top \ --text="$OSNAME $OSVERSION $OSCODE\n\n$TXT1" \ --title="$TITLE" \ diff --git a/bin/yautostart b/bin/yautostart index 103b252..d13b5a5 100755 --- a/bin/yautostart +++ b/bin/yautostart @@ -10,6 +10,7 @@ case $LANG in NAME="Nazwa" COMMENT="Komentarz" NO_DESC="brak opisu" + CANCEL="Anuluj" ;; *) TITLE="XDG Autostart Editor" @@ -19,6 +20,7 @@ case $LANG in NAME="Name" COMMENT="Comment" NO_DESC="no description" + CANCEL="Cancel" ;; esac @@ -43,7 +45,7 @@ for f in $config_dir/autostart/*.desktop; do [ ! -z "$comment" ] && echo $comment || echo "$NO_DESC" done | yad --width=400 --height=400 --title="$TITLE" --image="gtk-execute" \ --text="$DESC" --list --print-all --bool-fmt="t" \ - --checklist --column="$ENABLE:CHK" --column="$FILE:HD" --column="$NAME" --column="$COMMENT:HD" --tooltip-column=4 > $results + --checklist --column="$ENABLE:CHK" --column="$FILE:HD" --column="$NAME" --column="$COMMENT:HD" --tooltip-column=4 --button=OK:0 --button="$CANCEL:1" > $results if [[ ${PIPESTATUS[1]} -eq 0 ]]; then i=0