Open ranisalt opened 3 years ago
I believe this could be fixed on the Steam flatpak app side and doesn't really have much to do with flatpak-builder.
I found no way to append to XDG_DATA_DIRS in the documentation.
You can set any arbitrary environment variable in build-options: env
. To be more dynamic you can run a script in the build module.
I believe this could be fixed on the Steam flatpak app side and doesn't really have much to do with flatpak-builder.
How is this related to the Steam flatpak? I don't see anything that could change there, and changing some value globally would not be good as not everybody will have the extension installed
You can set any arbitrary environment variable in
build-options: env
I need to set the var in run time, not build time
How is this related to the Steam flatpak? I don't see anything that could change there
It's possible add each extension's share
subdir to XDG_DATA_DIRS
in the app wrapper. This can't be done on the extension side.
changing some value globally would not be good as not everybody will have the extension installed
I don't know for sure how safe is adding a non-existing directory to XDG_DATA_DIRS
, probably it depends on program reading this variable.
I don't know for sure how safe is adding a non-existing directory to
XDG_DATA_DIRS
, probably it depends on program reading this variable.
That would be an application bug. As per the spec:
When attempting to read a file, if for any reason a file in a certain directory is unaccessible, e.g. because the directory is non-existent, the file is non-existent or the user is not authorized to open the file, then the processing of the file in that directory should be skipped.
Linux distribution and version
Manjaro Linux 20210612-1
Flatpak-builder version
1.0.12
Flatpak version
1.11.1
Description of the problem
I'm trying to build yad as a module inside an extension for com.valvesoftware.Steam. The
make install
step for yad runsglib-compile-schemas
but reads and stores the definitions in/app/utils/steamtinkerlaunch/share/glib-2.0/schemas/gschemas.compiled
, because/app/utils/steamtinkerlaunch
set asbuild-options.prefix
.When running
flatpak run --command=yad com.valvesoftware.Steam
I get the following error:Now I don't know a lot about glib/gschema in general, but apparently it is looking in
XDG_DATA_DIRS
which is set toXDG_DATA_DIRS=/app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share
in the sandbox, so/app/utils/steamtinkerlaunch/share
should also be there. I found no way to append toXDG_DATA_DIRS
in the documentation.Steps to reproduce
This is the yaml configuration:
It is required to clone [flathub/shared-modules (https://github.com/flathub/shared-modules) in the same folder. I am building with
flatpak-builder --user --force-clean build com.valvesoftware.Steam.Utility.steamtinkerlaunch.yml --install