diff --git a/api b/api index 9a3f4fc..e1674d2 100755 --- a/api +++ b/api @@ -402,7 +402,7 @@ is_supported_system() { if uname -m | grep -q 'x86' || uname -m | grep -q 'i686' || uname -m | grep -q 'i386';then echo "Pi-Apps is not supported on x86 processors. Expect almost all apps to fail. Consider switching to this x86 port of Pi-Apps: https://github.com/MCRaspRBX/pi-apps-x86" return 1 - elif [[ "$(cat /etc/os-release | grep VERSION_CODENAME | tr -d '"' | awk -F= '{print $2}')" == @(stretch|wheezy|jessie) ]];then + elif [[ "$(cat /etc/os-release | grep VERSION_CODENAME | tr -d '"' | awk -F= '{print $2}' | tr '[A-Z]' '[a-z]')" == @(stretch|wheezy|jessie) ]];then echo "Pi-Apps is not supported on the outdated $(cat /etc/os-release | grep VERSION_CODENAME | tr -d '"' | awk -F= '{print $2}') operating system. Expect many apps to fail. Consider upgrading your operating system." return 1 elif [[ "$(uname -m)" == armv6* ]];then diff --git a/gui b/gui index 70735e1..9425a64 100755 --- a/gui +++ b/gui @@ -228,6 +228,7 @@ while true;do echo "output variable empty!" yad --center --title='Pi-Apps' --width=310 \ --window-icon="${DIRECTORY}/icons/logo.png" \ + --image="${DIRECTORY}/icons/mind-reading.png" \ --text="Mind reading is not supported. (You didn"\'"t select an App)" \ --button=OK:0 diff --git a/icons/badge-light.png b/icons/badge-light.png new file mode 100644 index 0000000..ee82324 Binary files /dev/null and b/icons/badge-light.png differ diff --git a/icons/logo-glow.png b/icons/logo-glow.png new file mode 100644 index 0000000..5689502 Binary files /dev/null and b/icons/logo-glow.png differ diff --git a/icons/logo-simple.png b/icons/logo-simple.png new file mode 100644 index 0000000..ee03019 Binary files /dev/null and b/icons/logo-simple.png differ diff --git a/icons/mind-reading.png b/icons/mind-reading.png new file mode 100644 index 0000000..9af2d65 Binary files /dev/null and b/icons/mind-reading.png differ diff --git a/manage b/manage index 6a8806d..9ab610c 100755 --- a/manage +++ b/manage @@ -39,16 +39,16 @@ EOF { current_git_date="$(cd "$DIRECTORY"; git show -s --format=%ct)" if [ $(date +%s) -gt $(($current_git_date + 7776000)) ];then - yad --icon="${DIRECTORY}/icons/logo.png" --width=500 --no-buttons \ + yad --window-icon="${DIRECTORY}/icons/logo.png" --width=500 --no-buttons --center --title="Auto-updating Pi-Apps" \ --text="Your Pi-Apps github repository is somehow 3 months out-of-date."$'\n'"Downloading fresh version of pi-apps and saving the old version to ${DIRECTORY}-3-months-old..." & sleep 1 clear - echo "\nYour Pi-Apps github repository is somehow 3 months out-of-date.\nDownloading fresh version of pi-apps and saving the old version to ${DIRECTORY}-3-months-old...\n\n" 1>&2 + echo -e "\nYour Pi-Apps github repository is somehow 3 months out-of-date.\nDownloading fresh version of pi-apps and saving the old version to ${DIRECTORY}-3-months-old...\n\n" 1>&2 cd $HOME rm -rf ~/pi-apps-forced-update git clone "$(cat "${DIRECTORY}/etc/git_url")" pi-apps-forced-update 1>&2 && cp -af "${DIRECTORY}/data" ~/pi-apps-forced-update && mv -f "$DIRECTORY" "${DIRECTORY}-3-months-old" && mv -f ~/pi-apps-forced-update "${DIRECTORY}" temp_logfile="$(mktemp).txt" - echo -e "Updated a 3-months-outdated pi-apps install.\nFrom: $current_git_date\nTo:$(cd "$DIRECTORY"; git show -s --format=%ct)\n$(get_device_info)" >> "$temp_logfile" + echo -e "Updated a 3-months-outdated pi-apps install.\nFrom: $current_git_date\nTo: $(cd "$DIRECTORY"; git show -s --format=%ct)\n$(get_device_info)" >> "$temp_logfile" send_error_report "$temp_logfile" 1>&2 rm -f "$temp_logfile" sleep 10