Open palexdev opened 1 year ago
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 }
Did it work for you?
kindly make a pr for these change to be merge
On my Arch system, installation fails because of this function:
It says that 'init' must be run as root, therefore I changed it to: