Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute child process "lvim": Failed to execve: No such file or directory #4469

Closed
Android789515 opened this issue Jan 17, 2024 · 8 comments
Labels

Comments

@Android789515
Copy link

Problem description

When I start lvim with the desktop file it is erroring.

I have no issues starting lvim with the desktop file using Xterm.

I have no issues starting lvim by running it in xfce4-terminal.

nvim -v

~ $: nvim -v
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1702233742

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info
~ $: 

Finding it:

~ $: which lvim
/home/untitled1/.local/bin/lvim
~ $: stat "$(which lvim)"
  File: /home/untitled1/.local/bin/lvim
  Size: 491       	Blocks: 8          IO Block: 4096   regular file
Device: 259,5	Inode: 6840206     Links: 1
Access: (0744/-rwxr--r--)  Uid: ( 1000/untitled1)   Gid: ( 1000/untitled1)
Access: 2024-01-16 19:38:44.703775358 -0600
Modify: 2024-01-16 19:38:44.707775327 -0600
Change: 2024-01-16 19:38:44.708775320 -0600
 Birth: 2024-01-16 19:38:44.703775358 -0600
~ $: cat "$(which lvim)"
#!/usr/bin/env bash

export NVIM_APPNAME="${NVIM_APPNAME:-"lvim"}"

export LUNARVIM_RUNTIME_DIR="${LUNARVIM_RUNTIME_DIR:-"/home/untitled1/.local/share/lunarvim"}"
export LUNARVIM_CONFIG_DIR="${LUNARVIM_CONFIG_DIR:-"/home/untitled1/.config/lvim"}"
export LUNARVIM_CACHE_DIR="${LUNARVIM_CACHE_DIR:-"/home/untitled1/.cache/lvim"}"

export LUNARVIM_BASE_DIR="${LUNARVIM_BASE_DIR:-"/home/untitled1/.local/share/lunarvim/lvim"}"

exec -a "$NVIM_APPNAME" nvim -u "$LUNARVIM_BASE_DIR/init.lua" "$@"
~ $: 

.profile

export PATH="~/.local/bin:$PATH"

export TERMINAL="xfce4-terminal"
export EDITOR="lvim"

LunarVim version

master-e85637c

Neovim version (>= 0.9.1)

NVIM v0.9.5

Terminal name

xfce4-terminal

Operating system/version

EndeavourOS

Steps to reproduce

Unsure how reproducible this is.

  1. Clone the repo.
  2. Run the install script.
  3. Opt in to missing dependencies.
  4. Add the install folder to path.
  5. Set default terminal in i3wm in .profile.
  6. Reboot.
  7. Comment TryExec line in the .desktop file to have it show in Rofi.
  8. Run lvim from Rofi.

Screenshots

lvim Fail to start

@Android789515 Android789515 added the bug Something isn't working label Jan 17, 2024
@kylo252
Copy link
Collaborator

kylo252 commented Jan 17, 2024

when did you last install the desktop file? it might be worth it re-executing create_desktop_file() from the installer, or at least checking that xdg-desktop-menu works fine for you.

function create_desktop_file() {
# TODO: Any other OSes that use desktop files?
([ "$OS" != "Linux" ] || ! command -v xdg-desktop-menu &>/dev/null) && return
echo "Creating desktop file"
for d in "$LUNARVIM_BASE_DIR"/utils/desktop/*/; do
size_folder=$(basename "$d")
mkdir -p "$XDG_DATA_HOME/icons/hicolor/$size_folder/apps/"
cp "$LUNARVIM_BASE_DIR/utils/desktop/$size_folder/lvim.svg" "$XDG_DATA_HOME/icons/hicolor/$size_folder/apps"
done
xdg-desktop-menu install --novendor "$LUNARVIM_BASE_DIR/utils/desktop/lvim.desktop" || true
}

@Android789515
Copy link
Author

I installed it on Tuesday and it did not show up in Rofi, so I had to comment out the TryExec line.

@Android789515
Copy link
Author

when did you last install the desktop file? it might be worth it re-executing create_desktop_file() from the installer, or at least checking that xdg-desktop-menu works fine for you.

function create_desktop_file() {
# TODO: Any other OSes that use desktop files?
([ "$OS" != "Linux" ] || ! command -v xdg-desktop-menu &>/dev/null) && return
echo "Creating desktop file"
for d in "$LUNARVIM_BASE_DIR"/utils/desktop/*/; do
size_folder=$(basename "$d")
mkdir -p "$XDG_DATA_HOME/icons/hicolor/$size_folder/apps/"
cp "$LUNARVIM_BASE_DIR/utils/desktop/$size_folder/lvim.svg" "$XDG_DATA_HOME/icons/hicolor/$size_folder/apps"
done
xdg-desktop-menu install --novendor "$LUNARVIM_BASE_DIR/utils/desktop/lvim.desktop" || true
}

Looks like xdg-desktop-menu is working fine for me:

~ $: xdg-desktop-menu
   xdg-desktop-menu -- command line tool for (un)installing
   desktop menu items

Synopsis

   xdg-desktop-menu install [--noupdate] [--novendor] [--mode
   mode] directory-file(s) desktop-file(s)

   xdg-desktop-menu uninstall [--noupdate] [--mode mode]
   directory-file(s) desktop-file(s)

   xdg-desktop-menu forceupdate [--mode mode]

   xdg-desktop-menu { --help | --manual | --version }

Use 'man xdg-desktop-menu' or 'xdg-desktop-menu --manual' for additional info.
~ $: 

@Android789515

This comment has been minimized.

@kylo252
Copy link
Collaborator

kylo252 commented Mar 19, 2024

did you resolve this? otherwise, it might a problem with your rofi'e config/environment.

@Android789515
Copy link
Author

did you resolve this? otherwise, it might a problem with your rofi'e config/environment.

I haven't been able to resolve this.

Copy link
Contributor

This issue is stale because it has been open for 50 days with no activity.

@github-actions github-actions bot added the stale label May 11, 2024
Copy link
Contributor

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants