steam: add gsettings-desktop-schemas to FHS env#173811
steam: add gsettings-desktop-schemas to FHS env#173811Moredread wants to merge 1 commit intoNixOS:masterfrom
Conversation
|
I've taken the export statement from another package that uses a fhs and sets up the schemas manually. It works but I'm not sure of this is correct for a multiarch installation. |
pkgs/games/steam/fhsenv.nix
Outdated
There was a problem hiding this comment.
It doesn't work without it. Any idea what could cause that?
pkgs/games/steam/fhsenv.nix
Outdated
There was a problem hiding this comment.
Move this to commontargetpkgs and add(don't move) gtk3 there
There was a problem hiding this comment.
I still haven't gotten it to work.
steam-run has a very similar environment, so I used it to test a few things;
nix run -f . steam-run -- bash -c export
(...)
declare -x XDG_DATA_DIRS="/nix/store/lmpz9axrfpir2ig76vdl0nddjr3w53gv-desktops/share:/home/addy/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/home/addy/.nix-profile/share:/etc/profiles/per-user/addy/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share:/run/opengl-driver/share:/run/opengl-driver-32/share"
I.e. /usr/share is missing.
gsettings list-schemas also doesn't show any schemas
The profiles are installed though, so that worked:
nix run -f . steam-run -- ls -lah /usr/share/gsettings-schemas
(...)
dr-xr-xr-x 1 nobody nogroup 16 Jan 1 1970 gsettings-desktop-schemas-42.0
dr-xr-xr-x 1 nobody nogroup 16 Jan 1 1970 gtk+3-3.24.33
When I add /usr/share to XDG_DATA_DIRS everything works. Shouldn't it be there by default though?
There was a problem hiding this comment.
I can confirm @Moredread's findings, I'm currently adding gsettings-desktop-schemas and hicolor-icon-theme to steam's extraPkgs, but file pickers are still not working in my games. I get the same issues as above but using the launch command XDG_DATA_DIRS="$XDG_DATA_DIRS:/usr/share/" %command% in addition to adding the two packages fixes it. Weird~
Needed by Hadean Lands, which uses Lectrote, a GTK application. Without schemas saving and loading crashes the game.
Description of changes
Add gsettings-desktop-schemas to FHS env
Needed by Hadean Lands, which uses Lectrote, a GTK application. Without
schemas saving and loading crashes the game.
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes