mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
yad as function
This commit is contained in:
+14
-1
@@ -43,6 +43,18 @@ function check_for_updates() {
|
||||
fi
|
||||
}
|
||||
|
||||
function yad_install() {
|
||||
# Find out if we have yad and install if not
|
||||
echo "Yad is used to create the interactive menus this program uses."
|
||||
echo "If yad is not installed, we will attempt to install it now."
|
||||
sleep 2
|
||||
if ! hash yad 2>/dev/null; then
|
||||
sudo apt-get -y install yad ||
|
||||
{ echo "Yad install failed. Yad is required to run this installer. Please install yad and try again or check your internet connection."; exit 1; }
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
function set_screen_size() {
|
||||
screen_size=$(xdpyinfo | grep dimensions | \
|
||||
sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/' | sed s/x/" "/ || echo 800 480)
|
||||
@@ -781,8 +793,9 @@ ardop_launcher
|
||||
|
||||
|
||||
check_for_updates
|
||||
yad_install
|
||||
set_screen_size
|
||||
check_repo_version
|
||||
#check_repo_version
|
||||
determine_os
|
||||
info_dialogs
|
||||
easy_button
|
||||
|
||||
Reference in New Issue
Block a user