mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6318] neovim: Cannot run neovim appimage (Linux Lite) #3243
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3243
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Rosika2 on GitHub (Apr 21, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6318
Hi all, 👋
my system is Linux Lite 6.2 and my firejail version is 0.9.72.
Alas I face issues when trying to run
neovimas an appimage infirejail. 😞I did the following:
I downloaded the file
nvim.appimagefrom github and also checked the sha256 sum. It´s perfectly alright. Now I tried to run it infirejail:firejail --appimage ./nvim.appimagebut somehow it didn´t work as expected. I just got this:
Nothing more. Finally I aborted with
ctrl+C:Curiously it worked as expected in my Debian virtual machine:
No problems there.
And it provides the neovim output as it´s supposed to be. The only difference I could spot is Linux Lite and Debian are using two different versions of
firejail.Debian: firejail version 0.9.58.2 and Linux Lite: 0.9.72.
So it seems the newer version introduces some problems with regard to the neovim appimage?
What might be amiss here ❓
Many thanks in advance for your help...
... and many greetings from Rosika 🙂
@ghost commented on GitHub (Apr 21, 2024):
AppImages need special care in Firejail. Besides the
--appimageoption you'll need to add--profile=nvimto use its dedicated profile.FYI: disabling networking in /etc/firejail/firejail.config might not pose a problem for neovim, but will obviously break other applications (e.g. curl, firefox, git, wget etcetera). Which is why it's enabled in /etc/firejail/firejail.config by default.
The actual question that springs to mind when first reading your issue is why you're using an AppImage in this context. Any particular reason why you're not installing/using neovim from your distro repositories (via apt)?
Update your Debian VM, 0.9.58.2 is unsafe to use and no longer supported.
HTH
@Rosika2 commented on GitHub (Apr 22, 2024):
Hi @glitsj16, 👋
thanks for your reply. ❤️
It hadn´t occurred to me to add the nvim profile parameter. Sorry.
Well, I did it now:
firejail --appimage --profile=nvim nvim.appimagebut I arrived at the same results as in my first post. No improvement there. 🤔
Well, I never used neovim before but got interested in it.
Appimages provide a nice way of trying out the package without having to install it.
Right. I´ll do that. Thanks for the hint.
For what it´s worth, this way I realized that the appimage version used to work with an older version of firejail.
I was just curious about it.
Thanks for your help and for the links you provided.
Many greetings from Rosika 🙂
P.S.:
Here it says:
So, theoretically it could be done.
Unfortunaltely they weren´t much clearer on the "needs to be configured by the user" part
@ghost commented on GitHub (Apr 22, 2024):
Try commenting options line by line to find the one that's causing the breakage. Several profiles disable private-dev for AppImages, so you can start there via
--ignore=private-dev.@Rosika2 commented on GitHub (Apr 23, 2024):
Hi @glitsj16, 👋
thanks for your help.
Yet I´m sorry to say there was no improvement. 😞
I commented all options one by one but nothing helped. I always arrived at the same result as pointed out in my first post.
Seems like firejail version 0.9.72 won´t handle neovim appimage anymore.
Still: thanks so much for your time and help. ❤️
Many greetings from Rosika 🙂
@ghost commented on GitHub (Apr 23, 2024):
Hi @Rosika2,
That's not what I'm seeing here. I've just downgraded my firejail installation to 0.9.72, downloaded the nvim.appimage from https://github.com/neovim/neovim/releases and that runs fine via firejail.
I'm not familiar with Linux-Lite, but it might have a glibc that's incompatible with your specific nvim.appimage. Check minimal requirements on https://github.com/neovim/neovim for AppImage support, and your OS support for glibc issues.
@Rosika2 commented on GitHub (Apr 23, 2024):
Hi @glitsj16, 👋
thanks for your latest help.
Oh dear. I didn´t want to cause you so much work. I´m almost feeling a bit bad about it. So sorry. 😞
But it turns out your instinct led you in the right dircection.
It really seems that Linux Lite is to blame.
To verify it I just copied
nvim.appimagefrom my host (Linux Lite 6.2) to my other virtual machine (Archlinux).It runs the same version of firejail as my host: 0.9.72.
Here I entered
firejail --appimage --profile=nvim nvim.appimageand it runs perfectly:Absolutely no problem, and I got the right interface.
On Linux Lite I guess I´d have to install neovim then. I suppose that won´t introduce the problems the appimage version does.
I´m really sorry to have bothered you with the issue.
I hope you don´t mind.
Thanks a lot for your help. ❤️
Have a nice day and cheers from Rosika. 🙂
@ghost commented on GitHub (Apr 23, 2024):
That's quite allright. Switching between stable and git happens regularly when assisting users on issues.
Indeed, I think that's your best option on Linux Lite.
No need to apologize really. Nothing got broken by temporarily downgrading firejail here. Comes with the turf ;)
Likewise, have a nice day and happy firejailing :-)
@Rosika2 commented on GitHub (Apr 23, 2024):
Thanks @glitsj16 for your kind words. ❤️
Your help is always welcome and much appreciated.
Have a nice day and many greetings from Rosika 🙂
@kmk3 commented on GitHub (Apr 24, 2024):
@Rosika2 on Apr 23:
Does installing neovim directly works?
If not, can you test whether the appimage works without firejail?
Would be interesting to know if the issue is that firejail is incompatible with
appimages in that distribution.
@Rosika2 commented on GitHub (Apr 24, 2024):
@kmk3 :
Hi Kelvin, 👋
thanks for your comment.
I actually installed neovim on my system today.
In order to get the newer version than the one the official repo provides I did it thus:
And indeed it works the desired way. No problems there. 👍
Firetool stats says:
Cheers from Rosika 🙂