mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
feat(uninstaller): desktop entry
feat(uninstaller): desktop entry
This commit is contained in:
parent
523bafacb6
commit
4fa96e8e79
1 changed files with 11 additions and 0 deletions
|
@ -60,12 +60,23 @@ function remove_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() {
|
||||
parse_arguments "$@"
|
||||
echo "Removing LunarVim binary..."
|
||||
remove_lvim_bin
|
||||
echo "Removing LunarVim directories..."
|
||||
remove_lvim_dirs
|
||||
remove_desktop_file
|
||||
echo "Uninstalled LunarVim!"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue