Created install/uninstall files, fixed sourcing of other files

This commit is contained in:
Justin Moore
2015-02-25 02:06:39 -06:00
parent 35f4f014f1
commit 27cecacc1b
5 changed files with 273 additions and 20 deletions

View File

@@ -1,11 +1,13 @@
#!/bin/bash
source config/zymp3.conf
if [ ! -f /usr/bin/yad ];then
SET_GUI_BIN="zenity"
else
elif [ ! -f /usr/bin/zenity ];then
SET_GUI_BIN="yad"
else
SET_GUI_BIN="${SET_GUI_BIN}"
fi
if [ ! -f /usr/bin/ffmpeg ];then
@@ -37,7 +39,7 @@ fi
#first zenity gui window (paste youtube link)
gui()
{
VIDURL=$(${SET_GUI_BIN} --title="Zymp3 0.1-5" --height=${URL_BOX_HEIGHT} --width=${URL_BOX_WIDTH} --entry --text "Paste youtube link here: ")
VIDURL=$(${SET_GUI_BIN} --title="Zymp3 0.1-6" --height=${URL_BOX_HEIGHT} --width=${URL_BOX_WIDTH} --entry --text "Paste youtube link here: ")
if [[ $? == 0 ]] ; then
gui2