Ticket #13256: dialog_functions.sh.patch

File dialog_functions.sh.patch, 796 bytes (added by trinitronx, 5 years ago)

Patch for mythtv-setup shell functions file: dialog_functions.sh

  • dialog_functions.sh

    old new  
    5555        if [ -z "$SU" ] ; then
    5656                SU=`which gksu`
    5757
    58                 if [ -z "$SU_TYPE" ]; then
     58                if [ -z "$SU_TYPE" ] && [ -n "$SU" ]; then
    5959                        SU_TYPE=gksu
    6060                fi
    6161        fi
     
    156156                else
    157157                        if [ "$DE" = "kde" ]; then
    158158                                $SU_TYPE adduser `whoami` mythtv
     159                        elif [ "$SU_TYPE" -eq "sudo" ]; then
     160                                $SU_TYPE adduser `whoami` mythtv --prompt "Please enter your current login password to add `whoami` to the mythtv group."
    159161                        else
    160162                                $SU_TYPE adduser `whoami` mythtv --message "Please enter your current login password to add `whoami` to the mythtv group."
    161163                        fi