I have put the original whonix_repository text in page 2. I’ll need the text for the other pages in order to adapt the wizard size to the verbosity. If you’d feel like, you could write a manual in there…
I am not sure what the first screen could say. If we need it at all. Input as always welcome.
Could you add a “will run command…” before actually running that command to terminal beforehand please?
Would it be possible without too much effort to write the the exit code info output message in terminal right after the command was run and before the final info popup?
Do we want a final info popup or would the more canonical way to show a final wizard screen? (The latter would be more difficult, because then we’d need to hide the cancel button and show a “back to beginning” (how to name it?) and an exit button?)
I am not sure what the first screen could say. If we need it at all. Input as always welcome.
Will remove it for the time being. If anyone has suggestions, it's easy to get back.
Could you add a "will run command..." before actually running that command to terminal beforehand please?
As far as I know, that is not possible. The graphic modules are compiled before the script is interpreted, and any print statement is executed after the program has completed. I believe there is qDebug or something similar for that, but I have yet to try it.
Would it be possible without too much effort to write the the exit code info output message in terminal right after the command was run and before the final info popup?
Yes, see below.
Do we want a final info popup or would the more canonical way to show a final wizard screen? (The latter would be more difficult, because then we'd need to hide the cancel button and show a "back to beginning" (how to name it?) and an exit button?)
I will remove the popup (or may be only show it if whonix_repository exit code is non zero). The first intention was to have a last wizard page, but I had to temporarily resort to the popup, because dealing with signals-slots in Qt is tricky, and the (very few) examples are written in C++. It's getting clearer now.
When doing “no -> back -> no”, these terminal messages are mixed up.
INFO usr/bin/whonix-repository-wizard: Ok, exit code of "whonix_repository --disable" was 0.
INFO usr/bin/whonix-repository-wizard: Ok, exit code of "whonix_repository --disable" was 0
[quote=“Patrick, post:33, topic:635”]When doing “no -> back -> no”, these terminal messages are mixed up.
INFO usr/bin/whonix-repository-wizard: Ok, exit code of "whonix_repository --disable" was 0.
INFO usr/bin/whonix-repository-wizard: Ok, exit code of "whonix_repository --disable" was 0
[/quote]
They are not mixed, they are buffered. You can try all four options before clicking “Finish”., there will be four lines (or whatever number of lines, function of the number of times you ran the command).
Still have to add real time writing to stdout from the GUI to print the exit code line right after the command is completed.
Could you disable the “cancel” button in last one please? (Because at the point the action is already done and cannot be canceled in that technical sense anymore, I think.)