NVIM最初是作为桌面应用程序| :chechhealth-命令不可用

发布于 2025-01-27 14:33:21 字数 171 浏览 4 评论 0原文

当我从应用程序开始并运行Neovide时:CheckHealth我会发现Node和其他命令不可用的错误。但是,当我从终端启动它时,这些命令没有错误。我尝试复制和修改新维德桌面文件以启动NVIM,看看我的新型新维德安装是否出错。但同时仅启动NVIM,因为应用程序会打印出相同的错误。

我正在使用Linux和等离子桌面

When I start neovide from my applications and run :checkhealth I get errors that node and other commands are not available. But when I start it from my terminal there is no error for those commands. I tried to copy and modify the neovide desktop file to start just nvim and see if there if something wrong with my my neovide installation. But also starting just nvim as application prints the same errors.

I'm using linux with plasma desktop

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

櫻之舞 2025-02-03 14:33:21

TL:DR; 根据您的配置添加路径变量

,NVIM将需要知道运行某些可执行文件的环境(就像示例中的节点一样)。一个简单的解决方案是将路径变量添加到exec命令中的exec命令中。我记得我遇到了同样的问题,而在使用我的等离子体安装的配置中未识别节点。在GNOME节点上,人们认识到健康检查员很好,所以我认为我不需要额外的道路。后来,我意识到我在其他命令方面遇到了麻烦。例如,使用FDFind完成路径命令时。再次,我不得不搜索原因,这也是缺少的道路。

举个例子,假设您正在使用ZSH并想通过启用MultiGrid启动Neovide,桌面文件中的EXEC行看起来像:

exec = exec = ZSH -C“ source〜/.config/.config/zsh/.zsh/.zshrc &&新近 - 杂化%f“

TL:DR; add a path variable

Depending on your configuration, nvim will need to know the environment to run some executables (like it is with node in your example). An easy solution is to add the path variable to the exec command in the according .desktop file. I remember that I had the same issue with node not being recognized in a configuration using my plasma installation. On gnome node was recognized and healthchecks were good, so I thought I didn't need the extra path. Later on I realized that I had trouble with other commands. E.g. when using fdfind to complete path commands. Again I had to search what the reason was and it also was the missing path.

To give an example, let's say you are using zsh and want to start neovide with multigrid enabled, the Exec line in your desktop file could look like:

Exec=zsh -c "source ~/.config/zsh/.zshrc && neovide --multigrid %F"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文