- Code: Select all
zenity --file-selection --file-filter="*.[iI][sS][oO]" --file-filter="*" --width=640 --height=640 --title=$"Select Live ISO" --text="Select the CD image file." --filename="" --${BUTTON0}="OK"${BUTTON0NUM} -${BUTTON1}="Quit Task"${BUTTON1NUM}
This option is not available. Please see --help for all possible usages.
This partition selection window does not work with zenity. You can make a selection, but there's no output.
- Code: Select all
find /dev -mindepth 1 -maxdepth 1 -name "*[sh]d[a-z][1-9]" \
> | grep $device | sort | awk '{print "\n" $0 }' \
> | $DIALOG --list --title="Persistent Partition" --text="Select the partition that holds the loopback file." \
> --multiple --column ' ' --column 'Partitions' --height=380 --width=150 \
> --${BUTTON0}="OK"${BUTTON0NUM} --${BUTTON1}="Quit Task"${BUTTON1NUM}
Adding --radiolist corrects it.
- Code: Select all
find /dev -mindepth 1 -maxdepth 1 -name "*[sh]d[a-z][1-9]" | grep $device | sort | awk '{print "\n" $0 }' | $DIALOG --list --title="Persistent Partition" --text="Select the partition that holds the loopback file." --multiple --column ' ' --column 'Partitions' --height=380 --width=150 --${BUTTON0}="OK"${BUTTON0NUM} --${BUTTON1}="Quit Task"${BUTTON1NUM} --radiolist
/dev/sde1
These were taken from refracta2usb and select-loop-mount. I don't know if the problems exist in snapshot or installer, but they might. Most of the testing I do is with yad.
Adding --radiolist changes the output with yad:
- Code: Select all
TRUE|/dev/sde1|