My appimage runs, but it’s not locating the correct dependencies. I have no idea what I’m doing wrong.
I’m using the AppRun from AppImageKit/releases.
If i list the contents, I can see these fonts:
./appimagetool-x86_64.AppImage -l ShmupWarz-x86_64.AppImage
.DirIcon
AppRun
fonts
fonts/OpenDyslexic-Bold.otf
fonts/TitanOne-Regular.ttf
…
I’m trying to probe for the font location:
defaultFont = "./fonts/OpenDyslexic-Bold.otf"
var check = File.new_for_path(defaultFont)
if !check.query_exists()
defaultFont = "/usr/local/share/fonts/TitanOne-Regular.ttf"
print "Found font %s", defaultFont
When I run the appimage, it prints out:
Found font /usr/local/share/fonts/TitanOne-Regular.ttf
So it’s only finding the fonts in my file system, not in the appimage.
=======================================================
Well, the appimage documentation says to use relative paths, but they dont’seem to work. Here is what did
I took the script at:
and I changed the last line from this
exec “${EXEC}” $@
to this
exec “${EXEC}” $@ “${HERE}”
Then I modified my code to pick up the path in args[1], and calculate the absolute path:
Check /tmp/.mount_WorkYy/fonts/OpenDyslexic-Bold.otf
Found font /tmp/.mount_WorkYy/fonts/OpenDyslexic-Bold.otf
And it works, but it doesn’t seem you should have to modify your code design for appimage. This is a really kludgy solution. How is it really supposed to work?