danth / stylix

System-wide colorscheming and typography for NixOS
https://stylix.danth.me/
MIT License
1.22k stars 159 forks source link

kde: home-manager failing to set Plasma wallpaper, not connected to D-Bus server #422

Open foxf4ce opened 5 months ago

foxf4ce commented 5 months ago

I'm using NixOS 24.05 and Plasma 6 and I'm running into an error which causes my home-manager service to fail when starting up my computer. Rebuilding in Plasma works fine. This issue seems almost identical to #340, but I'm getting a different error ("Not connected to D-Bus server" rather than "The name is not activatable"). So I'm not sure if this is a different issue or not.

Here is the log of systemctl status home-manager-avat.service.

× home-manager-avat.service - Home Manager environment for avat
     Loaded: loaded (/etc/systemd/system/home-manager-avat.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Tue 2024-06-11 15:15:44 EDT; 1min 19s ago
    Process: 733 ExecStart=/nix/store/7i0d80cp7l2f3kzphp2pgl75f8k9bqal-hm-setup-env /nix/store/ncsxin9fydixgc>
   Main PID: 733 (code=exited, status=255/EXCEPTION)
         IP: 0B in, 0B out
        CPU: 762ms

Jun 11 15:15:43 baron hm-activate-avat[733]: Creating home file links in /home/avat
Jun 11 15:15:44 baron hm-activate-avat[733]: Activating onFilesChange
Jun 11 15:15:44 baron hm-activate-avat[733]: Activating reloadSystemd
Jun 11 15:15:44 baron hm-activate-avat[733]: User systemd daemon not running. Skipping reload.
Jun 11 15:15:44 baron hm-activate-avat[733]: Activating stylixLookAndFeel
Jun 11 15:15:44 baron hm-activate-avat[1175]: An error occurred while attempting to set the Plasma wallpaper:
Jun 11 15:15:44 baron hm-activate-avat[1175]: Not connected to D-Bus server
Jun 11 15:15:44 baron systemd[1]: home-manager-avat.service: Main process exited, code=exited, status=255/EXC>
Jun 11 15:15:44 baron systemd[1]: home-manager-avat.service: Failed with result 'exit-code'.
Jun 11 15:15:44 baron systemd[1]: Failed to start Home Manager environment for avat.
danth commented 5 months ago

I think this is the same problem: it's just starting so early that the D-Bus server isn't running at all, whereas in the issue you linked, D-Bus is running but KDE isn't connected on the other end.

hasrthur commented 2 months ago

I also have this issue so had to disable kde target. The interesting thing is that it worked the first time I logged into to freshly installed kde/plasma environment. It's only after I started setting things up manually and with plasma-manager help did I notice that home manager could not start.

I am using plasma 6. Though did this stylix target ever work then? Or was this problem introduced with 6 version of plasma only?

danth commented 2 months ago

The Stylix target is not fully adapted for Plasma 6 yet; however, this issue already existed with Plasma 5 too.