mwelcome start changes

master
Daniel Napora 2020-09-21 15:25:36 +02:00
parent eb8b75e395
commit 556d92134e
2 changed files with 13 additions and 9 deletions

View File

@ -38,12 +38,10 @@ startopenbox() {
config_dir=${XDG_CONFIG_HOME:-$HOME/.config}
rsync -aq --ignore-existing /etc/xdg/autostart/ $config_dir/autostart
# source Mabox main config file
. $HOME/.config/mabox/mabox.conf
# Run mwelcome if not disaled
[ ! -f "$HOME/.config/mabox/.mwelcome" ] && mwelcome &
[ $show_welcome == true ] && mwelcome &
virtualboxes
}

View File

@ -1,8 +1,8 @@
#!/bin/bash
export YAD_OPTIONS="--bool-fmt=t --separator='|'"
CONFIGFILE="$HOME/.config/mabox/mabox.conf"
. $CONFIGFILE
if [ -f "$HOME/.config/mabox/.mwelcome" ];then show_welcome=false;else show_welcome=true;fi
case $LANG in
pl*)
@ -111,7 +111,7 @@ values=($(yad --window-icon=distributor-logo-mabox --center --buttons-layout="e
--field=" :LBL" ""\
--field="$PROJECT:LBL" ""\
--field="$DEVELOPMENT" "exo-open --launch WebBrowser git.maboxlinux.org/Mabox"\
--field="$DONATE" "bash -c homewww"\
--field="$DONATE" "exo-open --launch WebBrowser https://maboxlinux.org/donate"\
--field=" :LBL" ""\
--field="$LAUNCH_AT_START" "$show_welcome" \
--button=" FB":"$FB" --button="輸 YT":"exo-open --launch WebBrowser www.youtube.com/channel/UCuiznSWZXPCnkRKjNfWwF5Q" --button=$CLOSE:0))
@ -120,7 +120,13 @@ values=($(yad --window-icon=distributor-logo-mabox --center --buttons-layout="e
while IFS='|' read -ra ADDR; do
VAL=${ADDR[14]}
done <<< "$values"
sed -i'.temp' -e 's/^show_welcome.*$/show_welcome='"$VAL"'/g' $CONFIGFILE
rm $CONFIGFILE.temp
#fi
case $VAL in
true)
rm $HOME/.config/mabox/.mwelcome
;;
false)
touch $HOME/.config/mabox/.mwelcome
;;
esac
exit