Skip to content

Better dconf support, and removal from packages #11239

Open

Description

@lucabrunox

Currently we have some bad experience with dconf:

  • Packages hardcode the gio module. This is good because it keeps abi compatibility with the linked glib, however it's also true that gio modules API hasn't seen any change since its first release in version 2.30.
  • NixOS modules add dconf to the system packages, making it impractical for the user to disable it.

Proposal:

  • Remove dconf references from every package.
  • Add services.dconf.enable, which adds the system package and the GIO_MODULE env var.

This way we cleanup packages, make it possible for services to services.dconf.enable = mkDefault true; and let the user disable it with services.dconf.enable = false;.

cc @vcunat

Activity

  1. added
    0.kind: enhancement
    6.topic: nixos
    6.topic: GNOME
    6.topic: non-nixos
    on Nov 24, 2015
  2. domenkozar commented on Nov 24, 2015

    @domenkozar
    Member

    What about non-NixOS?

  3. lucabrunox commented on Nov 24, 2015

    @lucabrunox
    ContributorAuthor

    @domenkozar same as nixos? If the user wants dconf, the user will install it. If any other distro doesn't have dconf, also its applications won't save settings in dconf. I don't see any problem with nix packages in that regard.

    EDIT: perhaps the only problem could be GIO_MODULE, but do you really want to add this variable to every glib package? I'm not sure.

  4. lucabrunox commented on Nov 24, 2015

    @lucabrunox
    ContributorAuthor

    About ABI compatibility there's no harm, it's been stable since 2.30. Yet non-nixos users may have troubles as you say.

    For icons we have a default, and people can simply override it globally.
    For GIO_MODULE however the story is different. Why only dconf and not also glib-networking hardcoded in programs?

    About multiple-output, agreed we can do this.

  5. zimbatm commented on Feb 24, 2016

    @zimbatm
    Member

    could we have the dconf package set the GSETTINGS_BACKEND on install like cacert does for SSL_CERT_FILE ? then it can be installed either as a user or in the system.

  6. davidak commented on May 7, 2018

    @davidak
    Member

    This is still an issue with many GTK applications. A general fix would be great instead of fixing every single one separately.

  7. stale commented on Jun 4, 2020

    @stale

    Thank you for your contributions.

    This has been automatically marked as stale because it has had no activity for 180 days.

    If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

    Here are suggestions that might help resolve this more quickly:

    1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
    2. Ask on the NixOS Discourse.
    3. Ask on the #nixos channel on irc.freenode.net.
  8. added
    2.status: stale
    on Jun 4, 2020
  9. moved this to To Do in GNOMEon Jun 20, 2024
  10. qweered commented on Jun 23, 2026

    @qweered
    Contributor

    Still an issue

  11. removed
    2.status: stale
    on Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: enhancement6.topic: GNOME6.topic: nixos6.topic: non-nixos

    Projects

    • Status
      To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions