Skip to content

Instantly share code, notes, and snippets.

@Sciroccogti
Created December 15, 2020 08:04
Show Gist options
  • Save Sciroccogti/daabccf6803680b649378c88c65cab7a to your computer and use it in GitHub Desktop.
Save Sciroccogti/daabccf6803680b649378c88c65cab7a to your computer and use it in GitHub Desktop.
unsetup LDCad for http://www.melkert.net/LDCad
basedir="/usr"
appdir="$basedir/bin"
datadir="$basedir/share/LDCad"
cfgdir="/etc"
cfgfn="$cfgdir/LDCad.cfg"
userdir="<userAppDataDir>/LDCad"
scdir="$basedir/share/applications"
scfn="$basedir/share/applications/LDCad.desktop"
mimebasedir="$basedir/share/mime"
mimedir="$mimebasedir/packages"
mimefn="$mimedir/ldraw.xml"
echo "Removing executable from: $appdir"
rm $appdir/LDCad
echo "Removing data files from: $datadir"
rm -rf $datadir/seeds
echo "Removing config file: $cfgfn"
rm $cfgfn
#Unregister ldraw mime type
rm $mimefn
echo "Updating mime database."
update-mime-database $mimebasedir
#Removing desktop entry file.
rm $scfn
#Update desktop database.
echo "Updating desktop database."
update-desktop-database
#Done
echo "All done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment