local-bin/apsalar/vesktop

24 lines
544 B
Text
Raw Normal View History

2024-03-03 15:38:55 +02:00
#!/bin/sh
arRPCdir="$HOME/.local/share/vesktop/arrpc"
# check if arRPC is installed and autoinstall if necessary
2024-03-03 15:38:55 +02:00
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
2024-04-04 06:35:00 +03:00
$HOME/.local/share/vesktop/vesktop --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto
2024-03-03 15:38:55 +02:00
# exit arRPC when Vesktop closes
pkill -9 $arRPCPID