← Back to team overview

torios-dev team mailing list archive

Re: progress indicator

 

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
>
> 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?
> # 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.

These are all very good ideas Nio!  Thank you!
> Best regards
> Nio


-- 
Regards



Follow ups

References