A question about the GUI
Hello.
I was wondering what would be the best approach to write a GUI for f3read and f3write? The easiest way is to execute the commands and parse the stdout output. Can they be compiled as a static/dynamic library?
Hi @Max-Might,
I wrote f3read/f3write as standalone applications only, so they don't offer a library. However, one could reorganize the code into a library, and adjust f3read/f3write to use this new library. I see this as the best approach to pursue. Not only would your application have a better integration, but the library would also help others to integrate f3read/f3write elsewhere. The more ways to spot fake flash, the harder the life of counterfeiters.
Having said that, and assuming that you're still investigating the subject, I'd recommend focusing on f3probe/f3fix. I expect that these new tools will become the new standard to spot fake flash. Not to mention, that the work of having their functionality into a library is at a more advanced stage.
If I can suggest the target platform for your GUI, I suggest Android. Android is largely available, many devices support a flash card, and some even support USB on-the-go. In addition, as pointed by @thedod on the thread https://github.com/AltraMayor/f3/issues/8 , "many people don't have access to desktop computers."
My suggestions may be way more work than you're expecting to put in your application, so feel free to ignore any of them.
Yes, I am still investigating the options. I was thinking about starting with a GTK 3 interface. I have some experience with Android too but I want to do the desktop one first. The f3probe/f3fix combo looks nice and I will start with it.
The desktop version would be fine. Good luck!
I'm writing a GUI app for f3write/f3read, for OS X, using Cocoa. As soon as It's done I'll release It on GitHub.
UPDATE: here It is
I added a link to your GUI on F3's website. Thank you for your contribution.