-
Notifications
You must be signed in to change notification settings - Fork 192
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
Packaged App Working dir is / #1479
Comments
Hi @jprberlin! So it turns out that we can't guarantee a consistent working directory for packaged apps, especially between operating systems. The recommendation for finding files that are within your package is to look for them relative to your source files:
Images will automatically work relative to your application root by themselves when used with the Shoes |
If i package an app (tested under Mac OS) and i try to load some files that are part of the jar this files. Some debugging later i found out that the working Dir of the app is '/'
Dir.getwd printed '/', and this is not within the jars sandbox or so:
Debugging alert:
So how can i load files packaged in the jar with ruby.
@PragTob Mabybe you can help you old teacher :)
The text was updated successfully, but these errors were encountered: