#!/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;