Add scripts for installing pennywise

This commit is contained in:
Manuel Thalmann 2023-06-15 16:56:17 +02:00
parent c23d308bf0
commit b7de225e4b
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,5 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
yay --noconfirm -Syu pennywise-bin;
. "../../Common/Config/Pennywise/install.sh";
popd > /dev/null;

View file

@ -0,0 +1,7 @@
#!/bin/bash
desktopFile=/usr/share/applications/pennywise.desktop;
if ! grep "^Exec=.* --no-sandbox" "$desktopFile" > /dev/null
then
sudo sed -i '/^Exec=/s/^Exec=".*"/\0 --no-sandbox/' "$desktopFile";
fi;