Skip to content

Instantly share code, notes, and snippets.

@leminhtr
Created May 11, 2020 21:12
Show Gist options
  • Save leminhtr/58cac28a8d0fefcf0aec9af825df9692 to your computer and use it in GitHub Desktop.
Save leminhtr/58cac28a8d0fefcf0aec9af825df9692 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# Remove desktop entry
MENU_DESKTOP_FOLDER='.local/share/applications'
echo $MENU_DESKTOP_FOLDER
DESKTOP_ENTRY_FILENAME='zotero-eap.desktop'
echo "Do you want to remove desktop entry: $DESKTOP_ENTRY_FILENAME in folder $MENU_DESKTOP_FOLDER ?"
rm -i "$HOME/$MENU_DESKTOP_FOLDER/$DESKTOP_ENTRY_FILENAME"
echo "$DESKTOP_ENTRY_FILENAME desktop entry has been removed."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment