-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
runtime.c: Set XDG_DATA_DIRS
if it is empty to begin with
#481
Comments
As you can see Lines 172 to 173 in ed13661
But you can use your own AppRun bash script instead of |
Closing it due inactivity. Reopen if required. |
XDG_DATA_DIRS
if it is empty to begin with
I guess we need to set some |
Then, all XDG vars need to be set. And we cannot guarantee that this will work. It might even break. I think this counts as "you need to write an AppRun to solve this", and would rather document when and how to write an AppRun script on https://docs.appimage.org. |
Why not set all XDG variables to their default values in case they are empty? |
What "default values"? If any, you need to append to the existing values. |
For example, |
Is that relative to the AppDir? |
No. Which is why I wrote that we should append our (relative) path to that. |
We shouldn't invent defaults outside the scope of the AppImage. Especially since there's default values specified by XDG. Those directories are part of that. https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html:
|
From https://appimage-builder.readthedocs.io/en/latest/examples/gimp_path_mapping.html or in https://github.com/AppImageCrafters/AppRun/blob/master/docs/USAGE.md#recommended-environment-entries, it uses this:
|
I have a GTK# mono APP, in ubuntu and debian runs without problems.
However in manjaro 17.0.2 I have problems with GTK theme, get errors loading png icons.
runing the application directly whitout create appimage load the icons correctly, so the problem is the XDG_DATA_DIRS, in manajro this variable is not set so when AppRun loader set the XDG_DATA_DIRS put only one path in the variable, and the icons can't be loaded.
adding
export XDG_DATA_DIRS=$(printenv XDG_DATA_DIRS):/usr/local/share:/usr/share
to my app bash script solves de problem.
However I thing that the AppRun loader must set correctly de XDG_DATA_DIRS.
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
The text was updated successfully, but these errors were encountered: