Major changes port_on and add use terminal in vars

This commit is contained in:
castro-fidel
2020-11-02 01:44:03 +03:00
parent 8fc3301faf
commit c78720a4eb
11 changed files with 105 additions and 185 deletions

View File

@ -53,6 +53,19 @@ export PW_COMPAT_MEDIA_PATH="${PW_COMPAT_MEDIA_PATH}"
########################################################################
export urlg="http://portwine-linux.ru/donate"
########################################################################
export PW_TERM=""
if [ "${PW_USE_TERMINAL}" = "1" ]; then
if [ -x "`which konsole 2>/dev/null`" ]; then
export PW_TERM="konsole -e"
elif [ -x "`which xfce4-terminal 2>/dev/null`" ]; then
export PW_TERM="xfce4-terminal -e"
elif [ -x "`which xterm 2>/dev/null`" ]; then
export PW_TERM="xterm -e"
elif [ -x "`which gnome-terminal 2>/dev/null`" ]; then
export PW_TERM="gnome-terminal -- $SHELL -c"
fi
fi
########################################################################
START_PORTWINE ()
{
sh "${PORT_SCRIPTS_PATH}"/port_update