Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic GUI based on Zenity #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shvchk
Copy link

@shvchk shvchk commented May 29, 2019

Fixes #6

@ValdikSS
Copy link
Owner

ValdikSS commented Sep 7, 2019

This script should probably re-spawn itself as root, because it could not kill windows2usb script and its spawned processes, as they were running as root.
Take a look how I did it in windows2usb, in the end of file.


while [[ -z "$image" ]]
do
image="$(zenity --file-selection --title='Select image')"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
image="$(zenity --file-selection --title='Select image')"
image="$(zenity --file-selection --file-filter='Image files (iso) | *.iso *.ISO' --file-filter='All files | *' --title='Select image')"

--title='Select bootloader mode' \
--column='' --column='ID' --column='Mode' --hide-column=2 \
FALSE 'mbr' 'BIOS Boot' \
TRUE 'gpt' 'UEFI Boot' \
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
TRUE 'gpt' 'UEFI Boot' \
TRUE 'gpt' 'UEFI Boot (recommended)' \

@ValdikSS
Copy link
Owner

ValdikSS commented Sep 7, 2019

And it would be much, much better to actually show the progress. Is it possible to parse 7z progress in percentage and show it in zenity progress bar?

@ValdikSS
Copy link
Owner

@shvchk ping

@ValdikSS
Copy link
Owner

ValdikSS commented Dec 8, 2019

@shvchk ping. I really want to merge that but it doesn't work correctly as for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simple GUI with Zenity / YAD
2 participants