-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSTART.ME
executable file
·43 lines (38 loc) · 2.17 KB
/
START.ME
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
#!/bin/bash
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# This file is part of the 'AndroidThreeScripts' project #
# Copyright (C) 2014 'theFONZ' #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 2 of the License, or #
# any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. #
# See the GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public license #
# along with this program. If not, see 'license' in project root #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Default Project Location (Let the script find its own directory structure - Now it's portable !)
PROJECTLOCATION="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BINARYLOCATION="${PROJECTLOCATION}/bin"
STARTBASE="/A3S.base"
STARTMONITOR="/A3S.monitor"
STARTCONSOLE="/A3S.console"
NOTIFY_MESSAGE="AndroidThreeScripts is running..."
function Start_All_A3S {
# Open all three A3S scripts in their own termminals
x-terminal-emulator --hide-menubar --working-directory="$BINARYLOCATION" -e $BINARYLOCATION/$STARTMONITOR
# sleep 0.05
x-terminal-emulator --hide-menubar --working-directory="$BINARYLOCATION" -e $BINARYLOCATION/$STARTCONSOLE
sleep 0.05
x-terminal-emulator --hide-menubar --working-directory="$BINARYLOCATION" -e $BINARYLOCATION/$STARTBASE
sleep 0.05
}
# Initialize all A3S scripts
Start_All_A3S
# Show default message
notify-send "$NOTIFY_MESSAGE"