-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwine-manager.sh
executable file
·80 lines (74 loc) · 1.57 KB
/
wine-manager.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/bash
# Setup Default Function
export Default_Env=$(dirname $0)
if [[ ! -x ${Default_Env}/wine-manager_function.sh ]]; then
echo "wine-manager: function spirit can not found or premission died!"
echo "wine-manager: please check it install correctly or fix it form other files!"
exit 1
else
source ${Default_Env}/wine-manager_function.sh
fi
check_user
# menu
menu()
{
clear
echo "Welcome the wine select contain"
echo "Please select you choose"
echo ""
echo ""
echo " 1) create delault contain"
echo " 2) create contain"
echo " 3) running contain"
echo " 4) set config"
echo " 5) delete config"
echo " 6) printer desktop linker"
echo " 7) exit"
echo ""
echo ""
}
linker()
{
if [[ -r $F_HOME/.local/share/applications ]];then
for i in $F_HOME/.local/share/applications/wine-manager_*
do
echo "$(basename $i):${i#*=}"
done
fi
}
while true
do
menu
read -p ":" cc
case "$cc" in
"1")
$default_rd/wine-manager_runner.sh --c-i-w
;;
"2")
read -p "create name:" c
$default_rd/wine-manager_runner.sh --c-i=$c
;;
"3")
read -p "wine name:" ca
read -p "wine command:" cb
$default_rd/wine-manager_runner.sh --winename=$ca --programexec=$cb
;;
"4")
$default_rd/wine-manager_runner.sh --print-set
read -p "add config[such: h=p]:" c
$default_rd/wine-manager_runner.sh --cset-$c
;;
"5")
read -p "delete config:" c
$default_rd/wine-manager_runner.sh --dset-$c
;;
"6")
linker
;;
"7")
exit
;;
*)
;;
esac
done