diff options
author | Rahul P | 2020-04-09 18:49:07 +0530 |
---|---|---|
committer | GitHub | 2020-04-09 18:49:07 +0530 |
commit | f5f3afe6b5ff6af20370e12fd186f81449fd0713 (patch) | |
tree | efa898f7d53e00b4a6fe6a3eef9093afea294bcb /Debian/install-eSim.sh | |
parent | e3246ddd5a88623c28ebe41b107e4add286aed3b (diff) | |
parent | f3e69b0e70e5d9031f5ad5407efbddf978760157 (diff) | |
download | eSim-f5f3afe6b5ff6af20370e12fd186f81449fd0713.tar.gz eSim-f5f3afe6b5ff6af20370e12fd186f81449fd0713.tar.bz2 eSim-f5f3afe6b5ff6af20370e12fd186f81449fd0713.zip |
Merge pull request #150 from rahulp13/installers
desktop launcher as trusted app, update readme
Diffstat (limited to 'Debian/install-eSim.sh')
-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 |