usb-creator-hackers team mailing list archive
-
usb-creator-hackers team
-
Mailing list archive
-
Message #00097
Re: hacking a CLI frontend, running into issues
Hi Mario,
* Mario Limonciello <superm1@xxxxxxxxxx>:
>
> Were you intending this to eventually be a curses frontend on
> CLI, or only a frontend that can be launched with the proper
> arguments? If you were shooting for the latter, I would
> recommend calling it a "text" frontend instead.
Ah you are right. I was aiming for a front end that is intended
to be called with the proper arguments, not a fancy curses thing.
The mental model I had was that using the text front end would be
similar to dd.
> It seems to me you are trying to achieve threading by using the
> GTK GDK threading functionality. If you are shooting for a
> text frontend, why do you need to be threaded in the first
> place? I'm guessing because you want to still be able to
> output the progress to the prompt?
No, I don't really want threads at all, but thought that they
were necessary in order to interact with the backend properly,
since there seem to be callbacks, etc.
If they're not necessary, I'll look into rewriting what I have.
> Another way you can look at solving your problem is adding an
> automatic type argument to the GTK and KDE frontends that if
> all the arguments are provided and valid, install directly to
> the device in question using that frontend without
> interactions. It all depends on what you're trying to achieve
> from this frontend.
This might work too; but I'll play around with a non-threaded
version first.
Thanks!
/ac
References