diff options
author | rahulp13 | 2020-04-02 17:40:41 +0530 |
---|---|---|
committer | rahulp13 | 2020-04-02 17:40:41 +0530 |
commit | f3e69b0e70e5d9031f5ad5407efbddf978760157 (patch) | |
tree | efa898f7d53e00b4a6fe6a3eef9093afea294bcb /Debian | |
parent | e92fbed3228e33eef34d9df66a067e1285b70e69 (diff) | |
download | eSim-f3e69b0e70e5d9031f5ad5407efbddf978760157.tar.gz eSim-f3e69b0e70e5d9031f5ad5407efbddf978760157.tar.bz2 eSim-f3e69b0e70e5d9031f5ad5407efbddf978760157.zip |
make desktop launcher as trusted application
Diffstat (limited to 'Debian')
-rwxr-xr-x | Debian/install-eSim.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Debian/install-eSim.sh b/Debian/install-eSim.sh index d3c2f251..53a265c1 100755 --- a/Debian/install-eSim.sh +++ b/Debian/install-eSim.sh @@ -221,6 +221,17 @@ function createDesktopStartScript sudo chmod 755 esim.desktop # Copy desktop icon file to Desktop cp -vp esim.desktop $HOME/Desktop/ + + # Check if the target OS is Ubuntu 18 or not + if [[ $(lsb_release -rs) == 18.* ]]; then + # Make esim.desktop file as trusted application + gio set $HOME/Desktop/esim.desktop "metadata::trusted" yes + # Restart nautilus-desktop, so that the changes take effect + killall nautilus-desktop && nautilus-desktop & + fi + + # Remove local copy of esim.desktop file + rm esim.desktop # Copying logo.png to .esim directory to access as icon cp -vp images/logo.png $config_dir @@ -317,7 +328,7 @@ elif [ $option == "--uninstall" ];then read getConfirmation if [ $getConfirmation == "y" -o $getConfirmation == "Y" ];then echo "Removing eSim............................" - sudo rm -rf $HOME/.esim $HOME/Desktop/esim.desktop esim.desktop /usr/bin/esim + sudo rm -rf $HOME/.esim $HOME/Desktop/esim.desktop /usr/bin/esim echo "Removing KiCad..........................." sudo apt purge -y kicad sudo rm -rf /usr/share/kicad |