Launch arRPC before vesktop and run vesktop in wayland mode
This commit is contained in:
parent
dd25a91ce8
commit
cc8835df90
|
@ -1,4 +1,23 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
arRPCdir="$HOME/.local/share/vesktop/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
|
||||||
$HOME/.local/share/vesktop/vesktop --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto
|
$HOME/.local/share/vesktop/vesktop --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto
|
||||||
|
|
||||||
|
# exit arRPC when Vesktop closes
|
||||||
|
pkill -9 $arRPCPID
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue