-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
bug: services.kdeconnect.indicator
on wayland fails over missing tray.target
#6329
Comments
services.kdeconnect.indicator
on wayland fails over missing tray.target
I think this is a duplicate of #2064? |
Oh, no, sorry, this is partially new after all I think. I've been having the issue described in #2064 as well, and therefore had |
For #2064, I've also been using this workaround. So here's a version of it that's adapted to systemd.user.targets.tray = {
Unit = {
Description = "Home Manager System Tray";
Requires = [ "graphical-session-pre.target" ];
};
}; |
The tray.target problem goes beyond the kdeconnect service, as it is mentioned on #2064: as it was implemented, the target is only created when As a workaround for wayland users, @ada4a solution may be used unconditionally, i. e., without the |
As it current stands, the tray target is only created if xsession is enabled. This causes services that depend on it to fail on wayland sessions on configurations that do not have `services.xsession.enable = true;` or the workaround as the following: ```nix {config, lib, ...}: { systemd.user.targets.tray = lib.mkIf (!config.xsession.enable) { Unit = { Description = "Home Manager System Tray"; Requires = [ "graphical-session-pre.target" ]; }; }; } ``` This PR addresses [nix-community#6329](nix-community#6329) and [nix-community#2064](nix-community#2064), albeit I do not think it is the greatest solution, since it allows the targets defined by the xsession and wayland modules to be kept out of sync. I'd recommend defining `tray.target` independently from either one of those modules, since virtually every graphical session that requires a system tray would need such target.
Are you following the right branch?
Is there an existing issue for this?
Issue description
since #5299, I've had
services.kdeconnect.indicator
fail statingUnit tray.target not found
.it seems
tray.target
is available usingxsession
tho not by default on Wayland.we may want to instead make this dependency conditional on use of
xsession
.Maintainer CC
@onemoresuza
System information
The text was updated successfully, but these errors were encountered: