21 Sep
2018
21 Sep
'18
14:43
Feature added by: Ludwig Nussel (lnussel) Feature #326741, revision 1 Title: zypper: use dialog to display license Requested by: Ludwig Nussel (lnussel) Partner organization: openSUSE.org Description:
From user feedback I got at Akademy. By default zypper displays licenses to confirm in "less". That requires pressing 'q' to exit the pager. That is not intuitive for not so Linux experienced users. So to make this more user friendly, zypper could use "dialog" instead of less if available. An example call could be for example:
# dialog --textbox /etc/YaST2/licenses/base/license.txt $((LINES-5)) 85 --and-widget --yesno $"Do you agree with the terms of the license?" 0 0 -- openSUSE Feature: https://features.opensuse.org/326741