From b30fa258d09313d82247de61b244aa111dc07270 Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Sun, 3 Mar 2024 15:38:55 +0200 Subject: [PATCH] Adding vesktop --- apsalar/vesktop | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 apsalar/vesktop diff --git a/apsalar/vesktop b/apsalar/vesktop new file mode 100755 index 0000000..d695659 --- /dev/null +++ b/apsalar/vesktop @@ -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 +