|
@@ -60,12 +60,23 @@ function remove_lvim_bin() {
|
|
rm -f "$lvim_bin"
|
|
rm -f "$lvim_bin"
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+function remove_desktop_file() {
|
|
|
|
+ OS="$(uname -s)"
|
|
|
|
+ # TODO: Any other OSes that use desktop files?
|
|
|
|
+ [ "$OS" != "Linux" ] && return
|
|
|
|
+ echo "Removing desktop file..."
|
|
|
|
+
|
|
|
|
+ find "$XDG_DATA_HOME/icons/hicolor" -name "lvim.svg" -type f -delete
|
|
|
|
+ rm "$XDG_DATA_HOME/applications/lvim.desktop"
|
|
|
|
+}
|
|
|
|
+
|
|
function main() {
|
|
function main() {
|
|
parse_arguments "$@"
|
|
parse_arguments "$@"
|
|
echo "Removing LunarVim binary..."
|
|
echo "Removing LunarVim binary..."
|
|
remove_lvim_bin
|
|
remove_lvim_bin
|
|
echo "Removing LunarVim directories..."
|
|
echo "Removing LunarVim directories..."
|
|
remove_lvim_dirs
|
|
remove_lvim_dirs
|
|
|
|
+ remove_desktop_file
|
|
echo "Uninstalled LunarVim!"
|
|
echo "Uninstalled LunarVim!"
|
|
}
|
|
}
|
|
|
|
|