Closed gmankab closed 1 year ago
@gmankab
I am not familiar with flatpak, but is the location of the Neovim executable installed with flatpak /bin/nvim
?
If so, is it possible to run it with the following command?
/path/to/goneovim --nvim /bin/nvim
@akiyosi, hello
the only way to run flatpak app is flatpak run io.neovim.nvim
there is no executsble in /bin/neovim
in latest example i put a script that must run noevim in /bin/neovim
I found a flatpak package for neovide, another neovim GUI. This package includes neovim and resolves path issues. I believe that packaging goneovim in a similar way would also solve path issues. https://github.com/deisi/flathub/tree/neovide
perhaps packing goneovim in flatpak with neovim binary included will solve the problem
Ok, I understand the fact of the problem. I will try to make a flatpak package for goneovim If I make the time.
@akiyosi, thank you
@gmankab I was able to run goneovim with the following command.
goneovim --nvim=$HOME/.local/share/flatpak/exports/bin/io.neovim.nvim
@shiena, I didn't know it was possible
when you run a flatpak via flatpak run
, it runs in isolation from the system, and it has other paths to configs
i wouldn't recommend running flatpaks without flatpak run
, because then it will not be isolated, and the wrong config paths will be used
@gmankab Then you can use the wrapper script.
cat nvim-wrapper
#!/bin/sh
exec flatpak run io.neovim.nvim "$@"
chmod u+x nvim-wrapper
goneovim --nvim=./nvim-wrapper
@shiena
Try changing #!/bin/sh
to #!/bin/bash
in nvim-wrapper.
my problem was that i accidentally inserted an empty line at the beginning of the file
i changed
#!/bin/sh
to
#!/bin/sh
now it works, thanks @shiena
i am closing this issue, but #431 is still actual
@akiyosi, please make goneovim automatically try to run flatpak nvim, if binary nvim is not found in the system
If you copy nvim-wrapper
to a folder where the path, such as ~/.local/bin/nvim
, is included, you can start goneovim without any options.
yes, but it would be cool to free the user from having to create a wrapper script
i am installed neovim from flathub, and i can't make it works with goneovim