-
-
Notifications
You must be signed in to change notification settings - Fork 13.6k
-
-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
xfce4-notifyd is not started by dbus #106494
Comments
Updated channel, problem still appears.
I also see the following message in the dbus-daemon journal:
|
No idea why I'm seeing those errors at all.
|
Interestingly, if I explicitly put in
|
If xfce4-notifyd is explicitly added to dbus.packages, there's an appropriate
|
For other users stumbling on this, as a temporary workaround I'm running xfce4-notifyd from my
|
I updated from 20.03 to 20.09 yesterday without any configuration changes and I got hit with the same problem. Here's my metadata (Yes, I'm also using lambda as shell prompt 😄)
Also, I'm running xfce as DM ( As a workaround I created a systemd user service for xfce4-notifyd: { config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.xfce4-notifyd;
in
{
options = {
services.xfce4-notifyd = {
enable = mkOption {
type = types.bool;
default = false;
};
package = mkOption {
type = types.package;
default = pkgs.xfce.xfce4-notifyd;
};
};
};
config = mkIf cfg.enable {
systemd.user.services.xfce4-notifyd = {
description = "XFCE4 notifyd";
requires = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
serviceConfig = {
ExecStart = "${cfg.package}/lib/xfce4/notifyd/xfce4-notifyd";
Restart = "on-failure";
RestartSec = "1";
};
};
};
} And then in my { config, lib, pkgs, ... }:
{
imports = [
./xfce4-notifyd/default.nix
];
services.xfce4-notifyd.enable = true;
} Since I didn't restart my graphical session I just started it manually the first time: systemctl --user start xfce4-notifyd |
Caution: when xfce4-notifyd is down, you may hit a severe issue with xfce4-power-manager which I've reported upstream in that link. |
Thanks, I haven't tried this method to make a systemd service before. Is there a way to restrict this to just xfce4 sessions? |
Also, has anyone tracked down the change that introduced the issue? |
I don't think there's a streamlined way to do this, as Maybe you could change |
I marked this as stale due to inactivity. → More info |
I just looked at it again and think I found the immediate problem. xfce4-notifyd no longer carries the dbus-1 directories around in the share directory.
So this appears to be a regression at some point in 2020. @romildo You seem to have bumped the package and done quite a bit work on xfce. Do you know what could be the cause or a fix here? |
The following configure option is available:
We can try to enable it and see if it works for you. Note that the default (autostart session) works for me with the default NixOS configuration for Xfce. |
Thanks! @romildo Given the pull request I managed to track down the regression: As for everyone else, the linked PR is a permanent fix. Autostart users should not be affected. The following is a morally correct workaround until the PR hits a nix channel in case any other users are affected by this and don't want to wait. let
xfceOverlay = self: super: { xfce = super.xfce // {
xfce4-notifyd = super.xfce.xfce4-notifyd.overrideAttrs (old: {
configureFlags = (old.configureFlags or []) ++ [ "--enable-dbus-start-daemon" ];
});
};
};
in
{
config = {
nixpkgs.overlays = [ xfceOverlay ];
};
} Once PR is merged I will close this issue. |
@dminuoso Nice workaround! Much cleaner than the one I suggested 👍 |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/help-xfce4-notifyd-seems-to-be-a-ghost-package/21966/1 |
Describe the bug
xfce4-notifyd is not started by dbus in 20.09
This is verifiable by checking
systemctl
or justnix-shell -p libnotify --run 'notify-send It works!'
To Reproduce
Add xfce.xfce4-notifyd to systemPackages and cause a dbus restart.
This seems to be a regression between 20.03 and 20.09 (I don't have proof of this, but I'm confident this all worked before I upgraded to 20.09).
Expected behavior
That xfce4-notifyd gets picked up by dbus as per https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/system/dbus.nix#L116-L119
Notify maintainers
@worldofpeace
Metadata
Maintainer information:
The text was updated successfully, but these errors were encountered: