-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
Do not hard error if libfuse is not present #123
Comments
Very interesting. According to the manual, |
nice dlopen sounds good for that problem 2016-03-30 7:30 GMT+02:00 Ismael Barros² notifications@github.com:
|
Correct. Anyone volunteers to do a PR? |
Will this cover the case when user is not a member of fuse group? |
I don't think so, but at least we can warn the user |
KDevelop IRC thinks this would be a good idea, since a good error message helps in these cases. |
Here is an example of how to do this: Now, how do I get this into https://github.com/probonopd/appimagetool/blob/master/runtime.c? Probably it has to go into squashfuse... hl.c looks similar to the one linked above in that it calls |
I have an idea: |
Cool idea but makes the code larger and more complex, and is not so clean (clutters What do you think, could we somehow cleverly use weak symbols? |
I gave it a try: https://github.com/darealshinji/AppImageKit/tree/dlopen |
Can you upload a build here? Thanks. |
@darealshinji hats off, it works 👍 💯 🥇 Please send PR. |
Whoa, nice. Can you check what happens if libfuse is not present? Right now the invoked macros will call |
This is the error message that appears when the library is not available:
But even in this case, this works:
So as the message, how about this? |
When libfuse is not present, we currently get
Can you get rid of the |
This has been solved in #365. |
Try run this this should work |
We could use
dlopen ("/usr/lib64/libfuse.so.2", RTLD_LAZY);
like on http://www.dwheeler.com/program-library/Program-Library-HOWTO/x172.html to print a nice message saying you can extract or mount the ISO if libfuse is not present.Message:
It looks like libfuse is not installed on your system. To run this AppImage, you can loop-mount it or extract its contents, e.g. 7zx. See https://github.com/probonopd/AppImageKit/wiki/FUSE for more information.
The text was updated successfully, but these errors were encountered: