Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails on Arch #7

Open
palexdev opened this issue Jan 10, 2023 · 3 comments
Open

Installation fails on Arch #7

palexdev opened this issue Jan 10, 2023 · 3 comments

Comments

@palexdev
Copy link

On my Arch system, installation fails because of this function:

#Function for arch gapps prompt
gapps_arch(){
    read -p $'\e[32m[\e[35m+\e[32m] \e[1;32mDo you want gapps installed (y/n/o[yes/no/offline] - default:- n):\e[0m' gapps

        if [[ $gapps == "n" || $gapps == "N" ]]; then
            echo -e "\e[32m[\e[35m+\e[32m] \e[1;36msetting up waydroid\e[0m"
            sudo yay -S waydroid && waydroid init

        elif [[ $gapps == "y" || $gapps == "Y" ]]; then
            echo -e "\e[32m[\e[35m+\e[32m] \e[1;36msetting up waydroid\e[0m"
            sudo yay -S waydroid && waydroid init -s GAPPS

        elif [[ $gapps == "" ]]; then
            echo -e"\e[1;32mInstalling default\e[0m"
            sudo yay -S waydroid && waydroid init

        elif [[ $gapps == "o" || $gapps == "O" ]]; then
            offline    
        
        else
            echo -e "\e[32m[\e[35m-\e[32m] \e[1;36minvalid option !!!, restarting now....."
            sleep 1
            gapps_arch

        fi
}

It says that 'init' must be run as root, therefore I changed it to:

#Function for arch gapps prompt
gapps_arch(){
    read -p $'\e[32m[\e[35m+\e[32m] \e[1;32mDo you want gapps installed (y/n/o[yes/no/offline] - default:- n):\e[0m' gapps

        if [[ $gapps == "n" || $gapps == "N" ]]; then
            echo -e "\e[32m[\e[35m+\e[32m] \e[1;36msetting up waydroid\e[0m"
            sudo yay -S waydroid && sudo waydroid init

        elif [[ $gapps == "y" || $gapps == "Y" ]]; then
            echo -e "\e[32m[\e[35m+\e[32m] \e[1;36msetting up waydroid\e[0m"
            sudo yay -S waydroid && sudo waydroid init -s GAPPS

        elif [[ $gapps == "" ]]; then
            echo -e"\e[1;32mInstalling default\e[0m"
            sudo yay -S waydroid && sudo waydroid init

        elif [[ $gapps == "o" || $gapps == "O" ]]; then
            offline    
        
        else
            echo -e "\e[32m[\e[35m-\e[32m] \e[1;36minvalid option !!!, restarting now....."
            sleep 1
            gapps_arch

        fi
}
@chandujr
Copy link

Did it work for you?

@n1lby73
Copy link
Owner

n1lby73 commented May 25, 2023

kindly make a pr for these change to be merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@chandujr @palexdev @n1lby73 and others