mwelcome start changes
parent
eb8b75e395
commit
556d92134e
|
@ -38,12 +38,10 @@ startopenbox() {
|
||||||
config_dir=${XDG_CONFIG_HOME:-$HOME/.config}
|
config_dir=${XDG_CONFIG_HOME:-$HOME/.config}
|
||||||
rsync -aq --ignore-existing /etc/xdg/autostart/ $config_dir/autostart
|
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
|
# Run mwelcome if not disaled
|
||||||
|
[ ! -f "$HOME/.config/mabox/.mwelcome" ] && mwelcome &
|
||||||
|
|
||||||
[ $show_welcome == true ] && mwelcome &
|
|
||||||
virtualboxes
|
virtualboxes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
18
bin/mwelcome
18
bin/mwelcome
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export YAD_OPTIONS="--bool-fmt=t --separator='|'"
|
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
|
case $LANG in
|
||||||
pl*)
|
pl*)
|
||||||
|
@ -111,7 +111,7 @@ values=($(yad --window-icon=distributor-logo-mabox --center --buttons-layout="e
|
||||||
--field=" :LBL" ""\
|
--field=" :LBL" ""\
|
||||||
--field="$PROJECT:LBL" ""\
|
--field="$PROJECT:LBL" ""\
|
||||||
--field="$DEVELOPMENT" "exo-open --launch WebBrowser git.maboxlinux.org/Mabox"\
|
--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=" :LBL" ""\
|
||||||
--field="$LAUNCH_AT_START" "$show_welcome" \
|
--field="$LAUNCH_AT_START" "$show_welcome" \
|
||||||
--button=" FB":"$FB" --button="輸 YT":"exo-open --launch WebBrowser www.youtube.com/channel/UCuiznSWZXPCnkRKjNfWwF5Q" --button=$CLOSE:0))
|
--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
|
while IFS='|' read -ra ADDR; do
|
||||||
VAL=${ADDR[14]}
|
VAL=${ADDR[14]}
|
||||||
done <<< "$values"
|
done <<< "$values"
|
||||||
sed -i'.temp' -e 's/^show_welcome.*$/show_welcome='"$VAL"'/g' $CONFIGFILE
|
case $VAL in
|
||||||
rm $CONFIGFILE.temp
|
true)
|
||||||
#fi
|
rm $HOME/.config/mabox/.mwelcome
|
||||||
|
;;
|
||||||
|
false)
|
||||||
|
touch $HOME/.config/mabox/.mwelcome
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
|
Loading…
Reference in New Issue