anyrun-org / anyrun

A wayland native, highly customizable runner.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error launching desktop entry for vim

scarwire opened this issue · comments

First of all, thanks for all your work on anyrun, which I'm now using on a daily basis. :-)

I'm having trouble launching vim or neovim from anyrun, with the following result appearing in a terminal window:

Unable to spawn vim  because:
No viable candidates found in PATH "/home/dm/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin"
⚠️  Process "'vim '" in domain "local" didn't exit cleanly
Exited with code 1.
This message is shown because exit_behavior="CloseOnCleanExit"

Changing terminals from wezterm to kitty in applications.ron results in a similar error message.

This is especially strange because vim (or nvim) is definitely in my PATH (in /usr/bin/). I haven't touched the .desktop files that are packaged with vim and neovim. These apps open just fine if I launch them from wofi, for example.

The only clue I have is that there's an extra space after vim or nvim in the wezterm error messages, and I get exactly the same error message if I try to execute /usr/bin/wezterm-gui -e 'vim '. Is there anything in the code that might be introducing an extra space?

First of all sorry for the late reply.

Anyway, it would seem like the desktop entry for Vim itself contains this space, as the Exec line is vim %F. Adding the fix wouldn't be all that hard, but due to the repo transition state being kinda incomplete due to me being very busy adding it at this point to this repo would be kinda counterproductive.