Created
December 15, 2020 08:04
-
-
Save Sciroccogti/daabccf6803680b649378c88c65cab7a to your computer and use it in GitHub Desktop.
unsetup LDCad for http://www.melkert.net/LDCad
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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