Simple GUI with Zenity / YAD #6

Open
opened 2019-02-25 05:53:11 +03:00 by shvchk · 2 comments
shvchk commented 2019-02-25 05:53:11 +03:00 (Migrated from github.com)

Would be nice to be able to just double click AppImage, answer a few questions (device, iso file location, mode) and… done! 😃

Might be useful to add two new arguments to force corresponding mode (e.g. --cli and --gui).

if [[ $DISPLAY ]] could be used to select default mode (or maybe build separate AppImage defaulting to GUI mode).

App can make sure it's ok to output to stdout with if [ -t 1 ], and use log file if not (e.g. app is launched via double click or cron instead of terminal).

I might come up with a PR when I have some time. Would it be better to do GUI as a separate script (kind of wrapper) or part of the main script?

Would be nice to be able to just double click AppImage, answer a few questions (device, iso file location, mode) and… done! :smiley: Might be useful to add two new arguments to force corresponding mode (e.g. `--cli` and `--gui`). `if [[ $DISPLAY ]]` could be used to select default mode (or maybe build separate AppImage defaulting to GUI mode). App can make sure it's ok to output to stdout with `if [ -t 1 ]`, and use log file if not (e.g. app is launched via double click or cron instead of terminal). I might come up with a PR when I have some time. Would it be better to do GUI as a separate script (kind of wrapper) or part of the main script?
ValdikSS commented 2019-03-08 17:31:29 +03:00 (Migrated from github.com)

I might come up with a PR when I have some time

Sure, that would be great.

Would it be better to do GUI as a separate script (kind of wrapper) or part of the main script?

I think the separate script is better, but either methods work.

>I might come up with a PR when I have some time Sure, that would be great. >Would it be better to do GUI as a separate script (kind of wrapper) or part of the main script? I think the separate script is better, but either methods work.
recolic commented 2021-11-25 12:31:20 +03:00 (Migrated from github.com)

I don't think it's a good design to mix core logic and user-interaction in the same tool... In my opinion, I think this script is designed to be a simple tool, to do one thing (pour windows to usb), and it is doing that thing very very well.
https://en.wikipedia.org/wiki/Unix_philosophy

I don't think it's a good design to mix core logic and user-interaction in the same tool... In my opinion, I think this script is designed to be a simple tool, to do one thing (pour windows to usb), and it is doing that thing very very well. https://en.wikipedia.org/wiki/Unix_philosophy
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Max/ValdikSS_windows2usb#6