NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.49k stars 13.67k forks source link

workrave: cannot change settings #56077

Open tbenst opened 5 years ago

tbenst commented 5 years ago

Issue description

Workrave settings revert back after changing. Problem does not occur on Ubuntu.

Steps to reproduce

  1. install workrave on NixOS
  2. right click indicator -> Preferences
  3. adjust timer
  4. watch it revert in 2 secs
tbenst commented 5 years ago

@prikhi let me know if you can reproduce or if I can help?

allgreed commented 4 years ago

I've just stumbled upon this problem, following warning might be related as it was printed whenever I've changed the setttings:

(workrave:16062): dconf-WARNING **: 00:24:34.745: failed to commit changes to dconf: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files

@tbenst did you see the warning as well?

stale[bot] commented 4 years ago

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.
tbenst commented 4 years ago

still important to me. For what it’s worth, workrave uses gsettings: https://github.com/rcaelers/workrave/issues/159#issuecomment-583762742

tbenst commented 4 years ago

I think is also relevant: https://github.com/NixOS/nixpkgs/issues/54150

yungcheeze commented 4 years ago

This worked for me

services.dbus.packages = [ pkgs.gnome3.dconf ];

https://github.com/NixOS/nixpkgs/issues/24333#issuecomment-289235108

allgreed commented 4 years ago

I'm wondering what would be a good solution to this - a Nixos module for workrave [that installs workrave and the dconf package] seams a bit like an overkill and doesn't solve the problem of non-persisting settings in other apps. On the other hand a documentation entry just doesn't feel right as in contributing to idiosyncratic Nixos magic. Would runtime dependency make any sense?

I'd happily do the work, yet have no idea what would be a sensible high-level approach to the task at hand. I'm still pretty new to the ecosystem, so would really appreciate a bit of guidance from someone with more nix experience ;)

r-k-b commented 3 years ago

adding the line yungcheeze showed to my /etc/nixos/configuration.nix worked for me. Had to restart the machine, though ― restarting the dbus service is a no-go?

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info