17 lines
661 B
Bash
17 lines
661 B
Bash
#!/bin/bash
|
|
|
|
#package found in: https://linux.wps.cn/
|
|
|
|
version=11.1.0.11701
|
|
|
|
if package_is_new_enough firejail 0.9.58 ;then
|
|
firejail_package="firejail"
|
|
else
|
|
firejail_package="http://ports.ubuntu.com/pool/universe/f/firejail/firejail_0.9.62-3ubuntu0.1_arm64.deb"
|
|
fi
|
|
|
|
install_packages "$firejail_package" "https://wps-linux-personal.wpscdn.cn/wps/download/ep/Linux2019/$(echo $version | sed 's/.*\.//g')/wps-office_${version}_arm64.deb" || exit 1
|
|
|
|
#Prevent application from connecting to the internet
|
|
sudo sed -i 's|^Exec=|Exec=firejail --net=none --noblacklist=~/.local/share/Kingsoft --noblacklist=~/.config/Kingsoft|g' /usr/share/applications/wps*.desktop
|