GSettings schema of installed software not available to gsettings program or dconf-editor · Issue #33277 · NixOS/nixpkgs · GitHub
Skip to content You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert GSettings schema of installed software not available to gsettings program or dconf-editor #33277 New issue Copy link New issue Copy link Open Open GSettings schema of installed software not available to gsettings program or dconf-editor #33277 Copy link Labels 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: GNOME GNOME desktop environment and its underlying platform GNOME desktop environment and its underlying platform Description tiramiseb opened on Jan 1, 2018 Issue body actions Issue description $ gsettings list-schemas | grep -i gedit $ I have also notices that /nix/store/k5zrf5gz97938mymfsawgfncyyv1caly-gedit-3.22.1/share is not in the XDG_DATA_DIRS environment variable, it may be the cause of all this.
I started a discussion about a similar topic on the mailing list, however please note this is not the same. I am now running NixOS unstable. On 17.09, the gsettings schemas were not overriden correctly. Here, the schema for gedit is "not there". The other schema I had problem with (Tilix) is now okay. This issue looks specific to gedit. Steps to reproduce Install gedit. Try the aforementioned command. Technical details system: "x86_64-linux" host os: Linux 4.9.73, NixOS, 18.03.git.0bbf671 (Impala) multi-user?: yes sandbox: no version: nix-env (Nix) 1.11.16 nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs Reacted by guttermonk, John Wang , spagy, Tom, Anders Kaseorg and Bas van den Wollenberg Activity Next jtojnar commented on Jan 2, 2018 jtojnar on Jan 2, 2018 Member More actions As I mentioned in the mailing list: The problem is, gsettings (or dconf-editor) expect the schemas in some concrete locations.
That obviously fails with Nix, where the schemas are spread throughout the nix store. You can provide the location manually env XDG_DATA_DIRS=/nix/store/k5zrf5gz97938mymfsawgfncyyv1caly-gedit-3.22.1/share/gsettings-schemas/gedit-3.22.1 gsettings list-schemas but it is not very convenient. Alternately, you could use a script like this: #! /usr/bin/env nix-shell #! nix-shell -i bash -p glib.dev schemas= " " for p in $NIX_PROFILES ; do if [[ -d " $p " ]] ; then for d in $( nix-store --query --references " $p " ) ; do schemas_dir= $( echo " $d " /share/gsettings-schemas/ * ) if [[ -d " $schemas_dir /glib-2.0/schemas " ]] ; then schemas= " $schemas ${schemas : + : } $schemas_dir " fi done fi done env XDG_DATA_DIRS= $schemas gsettings " $@ " As fair as I know, NixOS does not add the schema paths to environment’s XDG_DATA_DIRS .
If you see any in the gsettings list-schemas command, they probably come from services.xserver.desktopManager.gnome3.extraGSettingsOverridePackages option. Edit: Fixed the XDG_DATA_DIRS directory in the script. Reacted by Daniel Langbein, Bas van den Wollenberg and Krapaince jtojnar added 6.topic: GNOME GNOME desktop environment and its underlying platform GNOME desktop environment and its underlying platform on Jan 2, 2018 tiramiseb commented on Jan 2, 2018 tiramiseb on Jan 2, 2018 Contributor Author More actions $ gsettings list-schemas | wc -l 99 I can assure you I didn't add 99 schemas in services.xserver.desktopManager.gnome3.extraGSettingsOverridePackage .
There were already plenty of schemas right after installing the system. The XDG_DATA_DIRS contains 46 entries, you can find its content at https://pastebin.com/PvS7VwKH . There are many directories mentioned in this var and many schemas seen by gsettings, but not all of them are listed. Notably, gedit and nautilus are absent from the list. The Tilix schema, for instance, has been in the list since it was installed. It is why I think you are wrong wen you write "NixOS does not add the schema paths to environment’s XDG_DATA_DIRS ".
But I may be wrong thinking you are wrong. I'm puzzled because your explanations do not fit what I am experiencing... When I add the gnome3.gedit package to extraGSettingsOverridePackage, gsettings is able to see its schemas, meaning that I can customize its settings globally (which is okay for me), also meaning that the bug mentioned in the mailing list seems to affect 17.09. But when we do not explicitly override the settings globally, the schemas are not available and the gsettings set is not usable as a user for the missing schemas (I don't care because I wanna configure my computer globally, but others certainly would like to allow their users to customize settings with the gsettings command). jtojnar commented on Jan 2, 2018 jtojnar on Jan 2, 2018 Member More actions You are right, I can reproduce #33219 with bash. stale commented on Jun 5, 2020 stale Bot on Jun 5, 2020 · Hidden as resolved show comment More actions stale added 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md on Jun 5, 2020 andersk commented on Jun 5, 2020 andersk on Jun 5, 2020 Contributor More actions Still an issue. mutter is another missing schema; there may be more, I just happened to run into this one.
I found this workaround: services . xserver . desktopManager . gnome3 . sessionPath = [ pkgs . gnome3 . gedit pkgs . gnome3 . mutter ] ; stale removed 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md on Jun 5, 2020 stale commented on Dec 2, 2020 stale Bot on Dec 2, 2020 · Hidden as resolved show comment More actions stale added 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md on Dec 2, 2020 piegamesde commented on Dec 2, 2020 piegamesde on Dec 2, 2020 · Hidden as resolved show comment More actions stale removed 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md on Dec 2, 2020 stale commented on Jun 2, 2021 stale Bot on Jun 2, 2021 · Hidden as resolved show comment More actions stale added 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md on Jun 2, 2021 andersk commented on Jun 2, 2021 andersk on Jun 2, 2021 · Hidden as resolved show comment More actions 2 remaining items jtojnar changed the title [-] gedit gsettings schema not reachable [/-] [+] GSettings schema of installed software not available to gsettings program or dconf-editor [/+] on Sep 22, 2022 nixos-discourse commented on Nov 30, 2022 nixos-discourse on Nov 30, 2022 · Hidden as off-topic show comment More actions nixos-discourse commented on May 21, 2023 nixos-discourse on May 21, 2023 · Hidden as off-topic show comment More actions nixos-discourse commented on Jun 30, 2023 nixos-discourse on Jun 30, 2023 · Hidden as off-topic show comment More actions nixos-discourse commented on Dec 29, 2023 nixos-discourse on Dec 29, 2023 · Hidden as off-topic show comment More actions nixos-discourse commented on Jan 18, 2024 nixos-discourse on Jan 18, 2024 · Hidden as off-topic show comment More actions nixos-discourse commented on Jun 6, 2024 nixos-discourse on Jun 6, 2024 · Hidden as off-topic show comment More actions guttermonk commented on Jun 9, 2024 guttermonk on Jun 9, 2024 Sponsor Contributor More actions I'm having the same issue with Nemo file manager.
The missing schema causes it to be unable to disable desktop icons, which is needed to remove the "Desktop" entry from the sidebar. See here for more info: https://discourse.nixos.org/t/how-to-remove-desktop-from-the-nemo-sidebar/46571 Is there a workaround to this? Please explain lik
The rest of this page is on the live site.