2024-07-17 12:18:27 +00:00
|
|
|
#!/bin/env fish
|
|
|
|
begin
|
|
|
|
set -l dir (status dirname)
|
2024-11-01 12:12:16 +00:00
|
|
|
source "$dir/../../lib/software.fish"
|
2024-07-17 12:18:27 +00:00
|
|
|
|
|
|
|
function installSW
|
|
|
|
yayinst \
|
|
|
|
pennywise-bin
|
|
|
|
end
|
|
|
|
|
|
|
|
function configureSW
|
|
|
|
set -l patch " --no-sandbox"
|
|
|
|
set -l pattern "^Exec=.*"
|
|
|
|
set -l indicator "$pattern$patch"
|
|
|
|
set -l file /usr/share/applications/pennywise.desktop
|
|
|
|
|
2024-10-06 19:25:34 +00:00
|
|
|
if ! grep "$indicator" "$file" >/dev/null
|
2024-07-17 12:18:27 +00:00
|
|
|
sudo sed -i "/$pattern/s/$pattern/\0 --no-sandbox/" "$file"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
runInstaller $argv
|
|
|
|
end
|