mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Remove nvim.desktop in favor of symlink
Moving to symlink fixes the following issues:
- App removes from launchers if you uninstall Nvim
- Nvim launches in the correct terminal without invalid desktop entry
Symlink setup moved to omarchy-nvim-setup (Ref:
bb7a0f4c1f)
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Name=Neovim
|
|
||||||
GenericName=Text Editor
|
|
||||||
Comment=Edit text files
|
|
||||||
Exec=$TERMINAL -e nvim %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++;
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
echo "Fix opening in nvim from files manager"
|
|
||||||
|
|
||||||
cp -f $OMARCHY_PATH/applications/nvim.desktop ~/.local/share/applications/nvim.desktop
|
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
echo "Ensure nvim started from app launcher always starts nvim not $EDITOR"
|
echo "Ensure nvim started from app launcher always starts nvim not $EDITOR"
|
||||||
|
|
||||||
cp $OMARCHY_PATH/applications/nvim.desktop ~/.local/share/applications/
|
if [ -f /usr/share/applications/nvim.desktop ]; then
|
||||||
|
rm ~/.local/share/applications/nvim.desktop
|
||||||
|
ln -s /usr/share/applications/nvim.desktop ~/.local/share/applications/nvim.desktop
|
||||||
|
update-desktop-database ~/.local/share/applications
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user