torios-dev team mailing list archive
-
torios-dev team
-
Mailing list archive
-
Message #00410
Re: progress indicator
Hi Israel,
I would be happy with dialog in the OBI for ToriOS 1.0. It is tested a
lot, and modified slowly from my original version, so I think we can
rely on it. Still, it needs testing, to be sure that the recent changes
have not borked anything.
And we need to debug and test how grub is installed. As I wrote 'some
mail ago', it would be a good idea to let the user select where to
install it (to which drive). This would be a new feature, that I think
is important because the default target is changed to /dev/sda.
When confident with zenity in the OBI, I would be ready for ToriOS 1.1.
Of course there will be some minor bug-fixes too, plus up-to-date
versions of all the program packages.
Best regards
Nio
ps/ See also inline/ ds
Den 2015-10-13 kl. 16:02, skrev Israel:
> Hi Nio,
> We can release it without Zenity version if needed, all I need to do is
> copy the non-zenity desktop icon to the desktop instead.
> To use zenity I simply pass usezenity to starter and then it creates the
> file $HOME/usezenity containing "true"
> So if everything is good (except grub for mkpxpy which I think is fixed
> now) then I will revert OBI to start in Dialog mode and we can release
> 1.0 and I will work on zenity installer here and there after building
> 2.0 alpha.
> Reverting to Dialog version is very easy to do, since I have persevered
> everything as is, with the exception of checking for zenity and using
> that instead in many areas.
> (inline below)
>
>
> On 10/13/2015 01:47 AM, Nio Wiklund wrote:
>> Hi Israel.
>>
>> I will reply to your recent mails separately.
>>
>> It seems that you are determined to release ToriOS with a zenity version
>> of the OBI-installer. Be prepared to do *a lot* of debugging before it
>> will be as reliable as the dialog version.
>>
>>
>> 1. I think you should have real progress indication during the expansion
>> of the tarball, so I will show how I converted the progress indication
>> in mkusb:
>>
>> I added the option -n to pv and used its output in zenity.
> Ok. that sounds like a good idea
>> I also modified this output to wait for syncing (flushing the buffers).
>> This is done in the function 'do_n_show' (in the mkusb shell-script
>> file). You are welcome to borrow that function :-)
> I will look at it
It should be rather easy to fix this.
>> 2. I also have a crude stepwise indication when making persistent live
>> drives. It is integrated in the function 'grub_n_iso'
> So you think I should make an overall progress indicator?
I think it would improve the user experience - not as important as a
progress indicator for extracting from the tarball - but worthwhile.
>> # general grub_n_iso progress window
>>
>> ( tail -f "$tailfile" |zenity --progress --title="$version - preparing
>> persistent live drive ..." \
>> --percentage=0 --auto-close --no-cancel \
>> --window-icon="/usr/share/icons/hicolor/48x48/apps/mkusb.png" 2>>
>> "/dev/null") & pid=$!
>>
>> echo "# Start grub_n_iso" > "$tailfile"
>> ...
>> echo "05
>> # Checking help files" >> "$tailfile"
>> ...
>> echo "10
>> # unmount, swapoff and wipe GPT traces and the first megabyte" >>
>> "$tailfile"
>> ...
>>
>> I think this might be better than the short-lived zenity windows that
>> you use now to indicate the progress. But you should clean up
>> afterwards. I do that with the function 'clear_grn' in mkusb.
>>
>> This crude stepwise indication is less important. Maybe you can even
>> skip those short-lived zenity windows that you use now to indicate the
>> progress. I think they only irritate the user. Write that information to
>> the log file instead. Keep only the windows, where the user should make
>> a decision (for example 'install a pae kernel or not').
> I definitely want to get rid of showing the logging windows for zenity
> and dialog so much, and only do so when it is relevant
> Not sure how to show a good progress indicator for installing GRUB though.
Installing the bootloader is a rather quick process, and can be one step
in a crude stepwise indication (like in mkusb).
Make a persistent live drive with mkusb and watch the progress
indication! (I suggest that you test the bleeding edge version, now 10.3)
> These are all very good ideas Nio! Thank you!
>> Best regards
>> Nio
Follow ups
References