-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
ibus: fix dconf db installation #85892
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
Conversation
@@ -47,6 +48,14 @@ let | |||
makeWrapper ${glib.dev}/bin/glib-mkenums $out/bin/glib-mkenums --unset PYTHONPATH | |||
''; | |||
}; | |||
# make-dconf-override-db.sh needs to execute dbus-launch in the sandbox, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What error does this cause?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dbus[19730]: Failed to start message bus: Failed to open "/etc/dbus-1/session.conf": No such file or directory
I wrote it in the comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, right. I did not notice we were previously replacing the file with a blank script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can confirm this works to copy the default value from GSettings schemas to the dconf database. Though I do not understand why would they do it, unless they do not use GSettings and access dconf database directly.
Fixes this warning at ibus-daemon startup: (ibus-dconf:15691): dconf-WARNING **: 21:49:24.018: unable to open file '/etc/dconf/db/ibus': Failed to open file ?/etc/dconf/db/ibus?: open() failed: No such file or directory; expect degraded performance
Thanks for your review comments. I incorporated them. |
The ibus aspect of this looks okay to me, but I don't know enough about the dconf aspect to say. |
The ibus test does not pass, but it didn't pass before either:
After:
which looks better but not good enough yet... |
I fixed the test by running ibus-daemon inside the session via systemd instead of via ssh. It's slightly mysterious to me though. |
It seems fine to me, and it works ✨ |
I noticed an issue with the tests that introduced an eval issue #85970 (comment). Reverted for now. |
reopened and fixed in #85992 |
Motivation for this change
Fix a warning when running ibus-daemon:
cc @jtojnar @worldofpeace about dconf.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)