Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- display_software_installation_choices_gtk ()
- {
- # Function to display the software install otions. All software option are listed in
- # the _rtd_recipes recipe book. Leveraging all the useful function in _rtd_library.
- # NOTE: adding a function in _rtd_recipes named "recipes_* ()" will automaticall populete
- # the menu displayed to the user.
- #
- # Globals: ${_BACKTITLE} ${zstatus}
- # Dependencies: _rtd_recipes
- # Arguments: None
- # Outputs: interactive screen
- # Returns: 0/1 last command executed.
- # Usage: simply call the function by its name.
- # Arguments: none
- #
- #
- # End of documentation
- DisplayMenu=( zenity --list --timeout 120 --width=800 --height=600 --text "$_BACKTITLE" --checklist --column "ON/OFF" --column "Select Software to add:" --separator " " )
- SoftwareList=$(list_loaded_software_functions --nonum)
- MenuOptions=($(for i in $SoftwareList ; do echo -e "${zstatus:=false} ${i}" ; done ))
- declare -A choices
- choices=$("${DisplayMenu[@]}" "${MenuOptions[@]}" )
- for choice in ${choices}
- do
- # call each chosen software install (by function) & add recepie (removed for display purposes)
- add_software_task recipe_${choice}
- done
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement