Commit 9fd89f78 authored by Roman Alifanov's avatar Roman Alifanov

Fidel's improvements

parent fa440cef
...@@ -7,10 +7,13 @@ if ! command -v yad &> /dev/null; then ...@@ -7,10 +7,13 @@ if ! command -v yad &> /dev/null; then
exit 1 exit 1
fi fi
PP_default_prefixes_directory="$HOME/PortProton/prefixes" if [[ -d "$HOME/.var/app/ru.linux_gaming.PortProton/" ]]; then
PP_default_prefixes_directory="$HOME/.var/app/ru.linux_gaming.PortProton/"
else
PP_default_prefixes_directory="$(cat $HOME/.config/PortProton.conf)"
fi
percent_bar() { percent_bar() {
local percentage=$(echo "$1" | sed 's/%//') local percentage=$(echo "$1" | sed 's/%//')
local total=$2 local total=$2
local filled=$(echo "($percentage*$total)/100" | bc) local filled=$(echo "($percentage*$total)/100" | bc)
...@@ -47,8 +50,8 @@ pfxparce() { ...@@ -47,8 +50,8 @@ pfxparce() {
fi fi
done done
} }
gui() { gui() {
[[ -z "$(which yad)" ]] && echo 'You need to install "yad" in your system.' && exit 1
old_IFS=$IFS && IFS=$'|' old_IFS=$IFS && IFS=$'|'
local tab_count=0 local tab_count=0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment