From 87606fc9f659c0fedfb698fd2112e8cc610e9c5b Mon Sep 17 00:00:00 2001 From: Zoey Date: Thu, 20 Aug 2026 16:09:45 +0200 Subject: [PATCH] fix broken Yes/No buttons in linux python installer --- devices/linux/Files/eduroam_linux_main.sh | 2 +- devices/linux/Files/main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/devices/linux/Files/eduroam_linux_main.sh b/devices/linux/Files/eduroam_linux_main.sh index 5c61cf838..92df6a240 100644 --- a/devices/linux/Files/eduroam_linux_main.sh +++ b/devices/linux/Files/eduroam_linux_main.sh @@ -132,7 +132,7 @@ function ask { fi if [ ! -z "$YAD" ] ; then text=$(echo "${1}" | fmt -w60) - if "$YAD" --image="dialog-question" --button=gtk-yes:0 --button=gtk-no:1 --width=500 --wrap --text="${text}\n\n${2}" --title="$TITLE" 2>/dev/null ; then + if "$YAD" --image="dialog-question" --button=yad-yes:0 --button=yad-no:1 --width=500 --wrap --text="${text}\n\n${2}" --title="$TITLE" 2>/dev/null ; then return 0 else return 1 diff --git a/devices/linux/Files/main.py b/devices/linux/Files/main.py index 6963a6168..60a289072 100755 --- a/devices/linux/Files/main.py +++ b/devices/linux/Files/main.py @@ -441,8 +441,8 @@ def ask(self, question: str, prompt: str = '', default: Optional[bool] = None) - '--title=' + Config.title] elif self.graphics == 'yad': command = ['yad', '--image="dialog-question"', - '--button=gtk-yes:0', - '--button=gtk-no:1', + '--button=yad-yes:0', + '--button=yad-no:1', '--width=500', '--wrap', '--text=' + question + "\n\n" + prompt,