Adding vesktop
This commit is contained in:
parent
433dee312d
commit
b30fa258d0
1 changed files with 23 additions and 0 deletions
23
apsalar/vesktop
Executable file
23
apsalar/vesktop
Executable file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/sh
|
||||||
|
arRPCdir="$HOME/.local/lib/arRPC"
|
||||||
|
# check if arRPC is installed and autoinstall if necessary
|
||||||
|
|
||||||
|
install_arRPC () {
|
||||||
|
git clone https://github.com/OpenAsar/arRPC "$arRPCdir"
|
||||||
|
cd "$arRPCdir" && npm install
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ ! -d "$arRPCdir" ]; then
|
||||||
|
install_arRPC
|
||||||
|
fi
|
||||||
|
|
||||||
|
# start arRPC
|
||||||
|
cd "$arRPCdir" && node src &
|
||||||
|
arRPCPID=$(pgrep -f 'node src')
|
||||||
|
|
||||||
|
# start Vesktop
|
||||||
|
/usr/local/bin/vesktop
|
||||||
|
|
||||||
|
# exit arRPC when Vesktop closes
|
||||||
|
pkill -9 $arRPCPID
|
||||||
|
|
Loading…
Reference in a new issue