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

How to launch without FUSERMOUNT_PROG variable? #281

Open
spvkgn opened this issue Apr 20, 2024 · 5 comments
Open

How to launch without FUSERMOUNT_PROG variable? #281

spvkgn opened this issue Apr 20, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@spvkgn
Copy link

spvkgn commented Apr 20, 2024

On Ubuntu 22.04 I can't launch it until set FUSERMOUNT_PROG

$ wget -qO appimagetool https://github.com/probonopd/go-appimage/releases/download/continuous/appimagetool-828-x86_64.AppImage

$ chmod +x appimagetool

$ ./appimagetool -h
fuse: failed to exec fusermount: Permission denied

Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage 
if you run it with the --appimage-extract option. 
See https://github.com/AppImage/AppImageKit/wiki/FUSE 
for more information
open dir error: No such file or directory

$ FUSERMOUNT_PROG=`which fusermount` ./appimagetool -v
appimagetool version 182
@spvkgn
Copy link
Author

spvkgn commented Apr 20, 2024

strace.txt

@probonopd
Copy link
Owner

probonopd commented Apr 27, 2024

3264039 open("/usr/bin/fusermount3", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
3264039 open("/usr/bin/fusermount", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)

What does which fusermount and which fusermount3 say on your system?

@spvkgn
Copy link
Author

spvkgn commented Apr 27, 2024

What does which fusermount and which fusermount3 say on your system?

 ~ $ which fusermount
/bin/fusermount
 ~ $ which fusermount3
/bin/fusermount3
~ $ dpkg -L fuse3 | grep '/bin/fusermount'
/bin/fusermount3
/bin/fusermount

@probonopd
Copy link
Owner

Looks like we would have to search for it in all directories on the $PATH since you never can now where the various distributions put it...

@probonopd
Copy link
Owner

probonopd commented May 9, 2024

Essentially we need to reinstate findBinaryOnPath from AppImage/type2-runtime@f0e35b0.

We cannot rely on the compile-time FUSERMOUNT_DIR at build time but have to look at the $PATH on the target system at runtime.

References:

@probonopd probonopd added the bug Something isn't working label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants