update
parent
a0ae77bd6d
commit
cc5db505c5
|
@ -1,6 +1,21 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
virtualboxes() {
|
||||||
|
if [[ -x "$(command -v VBoxManage)" ]]; then
|
||||||
|
{
|
||||||
|
printf "%b\n" "^sep(Maszyny wirtualne)"
|
||||||
|
printf "%b\n" "VirtualBox GUI,virtualbox"
|
||||||
|
}> $HOME/.config/mabox/vboxes.csv
|
||||||
|
VBoxManage list -s vms | cut -f 2 -d "\"" | sort -f | while read vm
|
||||||
|
do
|
||||||
|
printf "%s\n" "$vm,vboxmanage startvm ${vm}" >>$HOME/.config/mabox/vboxes.csv
|
||||||
|
done
|
||||||
|
printf "%s\n%s\n" "^sep()" "Odśwież listę,/usr/bin/mabox-obstart virtualboxes" >>$HOME/.config/mabox/vboxes.csv
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
startopenbox() {
|
||||||
# Copy only new files from /etc/xdg/autostart/
|
# Copy only new files from /etc/xdg/autostart/
|
||||||
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
|
||||||
|
@ -10,4 +25,17 @@ rsync -aq --ignore-existing /etc/xdg/autostart/ $config_dir/autostart
|
||||||
|
|
||||||
# Run mwelcome if not disaled
|
# Run mwelcome if not disaled
|
||||||
|
|
||||||
[ $show_welcome == true ] && mwelcome
|
[ $show_welcome == true ] && mwelcome &
|
||||||
|
virtualboxes
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
startopenbox) startopenbox;;
|
||||||
|
virtualboxes) virtualboxes;;
|
||||||
|
*)
|
||||||
|
echo -e "Usage $(basename "$0") startopenbox|virtualboxes" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
|
@ -39,8 +39,10 @@ Poniższe odnośniki pomogą Ci w rozpoczęciu używania nowego systemu.
|
||||||
UPDATE_LBL="Aktualizacja systemu"
|
UPDATE_LBL="Aktualizacja systemu"
|
||||||
ADD_KERNEL="Dodatkowe jądro!!Dobrą praktyką jest <b>instakacja dodatkowego kernela</b>. Kliknij, aby wybrać i zainstalować:FBTN"
|
ADD_KERNEL="Dodatkowe jądro!!Dobrą praktyką jest <b>instakacja dodatkowego kernela</b>. Kliknij, aby wybrać i zainstalować:FBTN"
|
||||||
RELNOTES="Informacje o wydaniu:FBTN"
|
RELNOTES="Informacje o wydaniu:FBTN"
|
||||||
|
RESOURCES="<b>ZASOBY</b>"
|
||||||
QUICKSTART="Przewodnik użytkownika"
|
QUICKSTART="Przewodnik użytkownika"
|
||||||
WWW="Strona WWW"
|
WWW="Strona WWW"
|
||||||
|
PROJECT="<b>PROJEKT</b>"
|
||||||
DEVELOPMENT="Rozwój:FBTN"
|
DEVELOPMENT="Rozwój:FBTN"
|
||||||
DONATE="Wesprzyj:FBTN"
|
DONATE="Wesprzyj:FBTN"
|
||||||
LAUNCH_AT_START="Uruchamiaj przy starcie:CHK"
|
LAUNCH_AT_START="Uruchamiaj przy starcie:CHK"
|
||||||
|
@ -55,8 +57,10 @@ Poniższe odnośniki pomogą Ci w rozpoczęciu używania nowego systemu.
|
||||||
UPDATE_LBL="System update"
|
UPDATE_LBL="System update"
|
||||||
ADD_KERNEL="Add Kernel!!It is good practice to have more than one kernel installed. We suggest to keep <b>LTS</b> one and <b>install newer one</b>.:FBTN"
|
ADD_KERNEL="Add Kernel!!It is good practice to have more than one kernel installed. We suggest to keep <b>LTS</b> one and <b>install newer one</b>.:FBTN"
|
||||||
RELNOTES="Release Notes:FBTN"
|
RELNOTES="Release Notes:FBTN"
|
||||||
|
RESOURCES="<b>RESOURCES</b>"
|
||||||
QUICKSTART="Quick Start Guide"
|
QUICKSTART="Quick Start Guide"
|
||||||
WWW="Website"
|
WWW="Website"
|
||||||
|
PROJECT="<b>PROJECT</b>"
|
||||||
DEVELOPMENT="Development:FBTN"
|
DEVELOPMENT="Development:FBTN"
|
||||||
DONATE="Donate:FBTN"
|
DONATE="Donate:FBTN"
|
||||||
LAUNCH_AT_START="Launch at start:CHK"
|
LAUNCH_AT_START="Launch at start:CHK"
|
||||||
|
@ -79,12 +83,12 @@ values=($(yad --window-icon=distributor-logo-mabox --center --undecorated --but
|
||||||
--field="$ADD_KERNEL" "manjaro-settings-manager -m msm_kernel" \
|
--field="$ADD_KERNEL" "manjaro-settings-manager -m msm_kernel" \
|
||||||
--field="$RELNOTES" ""\
|
--field="$RELNOTES" ""\
|
||||||
--field=" :LBL" ""\
|
--field=" :LBL" ""\
|
||||||
--field="<b>ZASOBY</b>:LBL" ""\
|
--field="$RESOURCES:LBL" ""\
|
||||||
--field="$QUICKSTART:FBTN" "bash -c userguide"\
|
--field="$QUICKSTART:FBTN" "bash -c userguide"\
|
||||||
--field="$WWW:FBTN" "bash -c homewww"\
|
--field="$WWW:FBTN" "bash -c homewww"\
|
||||||
--field="Forum:FBTN" "exo-open --launch WebBrowser forum.maboxlinux.org"\
|
--field="Forum:FBTN" "exo-open --launch WebBrowser forum.maboxlinux.org"\
|
||||||
--field=" :LBL" ""\
|
--field=" :LBL" ""\
|
||||||
--field="<b>PROJEKT</b>:LBL" ""\
|
--field="$PROJECT:LBL" ""\
|
||||||
--field="$DEVELOPMENT" "exo-open --launch WebBrowser gitlab.maboxlinux.org/explore/projects"\
|
--field="$DEVELOPMENT" "exo-open --launch WebBrowser gitlab.maboxlinux.org/explore/projects"\
|
||||||
--field="$DONATE" "bash -c homewww"\
|
--field="$DONATE" "bash -c homewww"\
|
||||||
--field=" :LBL" ""\
|
--field=" :LBL" ""\
|
||||||
|
|
Loading…
Reference in New Issue