summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUltimateOmega <[email protected]>2021-07-27 02:56:37 +0430
committerGitHub <[email protected]>2021-07-26 18:26:37 -0400
commitcb108adec4799dd592b9bf436247bf98ad56807a (patch)
treeed320b23d183b6f1baf5cd255a4826227d7002cb
parent79ff1548dd74f5cb7297a9f0e08e50a4531458b5 (diff)
[General] Create lvim.desktop (#1123)
-rw-r--r--utils/desktop/lvim.desktop13
-rwxr-xr-xutils/installer/install.sh9
-rwxr-xr-xutils/installer/uninstall.sh3
3 files changed, 24 insertions, 1 deletions
diff --git a/utils/desktop/lvim.desktop b/utils/desktop/lvim.desktop
new file mode 100644
index 00000000..f4a51b10
--- /dev/null
+++ b/utils/desktop/lvim.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Name=LunarVim
+GenericName=Text Editor
+Comment=An IDE layer for Neovim with sane defaults. Completely free and community driven.
+TryExec=lvim
+Exec=lvim %F
+Terminal=false
+Type=Application
+Keywords=Text;editor;
+Icon=nvim
+Categories=Utility;TextEditor;
+StartupNotify=false
+MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
diff --git a/utils/installer/install.sh b/utils/installer/install.sh
index 3d7fcc33..5778fb3a 100755
--- a/utils/installer/install.sh
+++ b/utils/installer/install.sh
@@ -226,5 +226,14 @@ else
# echo 'export PATH=$HOME/.config/lunarvim/utils/bin:$PATH' >>~/.bashrc
fi
+if [ "$(uname)" != "Darwin" ]; then
+ if [ -e "$HOME/.local/share/applications/lvim.desktop" ]; then
+ echo 'Desktop file already available'
+ else
+ mkdir -p "$HOME/.local/share/applications"
+ cp "$HOME/.local/share/lunarvim/lvim/utils/desktop/lvim.desktop" "$HOME/.local/share/applications/lvim.desktop"
+ fi
+fi
+
echo "I recommend you also install and activate a font from here: https://github.com/ryanoasis/nerd-fonts"
# echo 'export PATH=/home/$USER/.config/lunarvim/utils/bin:$PATH appending to zshrc/bashrc'
diff --git a/utils/installer/uninstall.sh b/utils/installer/uninstall.sh
index faa76c37..0615e219 100755
--- a/utils/installer/uninstall.sh
+++ b/utils/installer/uninstall.sh
@@ -1,4 +1,5 @@
#!/bin/sh
-rm -rf .local/share/lunarvim
+rm -rf ~/.local/share/lunarvim
sudo rm /usr/local/bin/lvim
+rm -rf ~/.local/share/applications/lvim.desktop