"Hyprland was started without start-hyprland..." error on startup when using NixOs and withUWSM
#12661
Replies: 16 comments 29 replies
|
I notice the same 👍🏾 |
|
A search for I am also on NixOS running hyprland via flake from the development branch, I have the following nix config relating to hyprland: {
inputs, config, lib, pkgs,
...
}: {
inherit (pkgs.stdenv.hostPlatform) system;
imports = [ inputs.hyprland.nixosModules.default ];
nix.settings = {
substituters = ["https://hyprland.cachix.org"];
trusted-substituters = ["https://hyprland.cachix.org"];
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
};
programs = {
hyprland = let
hyprpkgs = inputs.hyprland.packages."${system}"
in {
enable = true;
withUWSM = true;
package = hyprpkgs.hyprland;
portalPackage = hyprpkgs.xdg-desktop-portal-hyprland;
settings = { ... };
};
};
} |
|
I am getting the same error. |
|
I'm currently working on this issue. The simplest way to get it to work is to set environment.systemPackages = [ pkgs.uwsm ];
systemd.packages = [ pkgs.uwsm ];
environment.pathsToLink = [ "/share/uwsm" ];Also don't forget to use dbus-broker if you aren't doing it explicitly already.
- "NO_UWSM" = true;
+ "NO_UWSM" = !withSystemd;If you use greetd, the above is not needed, you only have to use Related Vladimir-csp/uwsm#186 |
Why is such warning even needed? What if someone makes a session using Hyprland with their own desktop names, either including |
|
There's a new config option that disables the warning. setting |
|
For whoever is using Hyprland as the compositor for SDDM it's enough to change the CompositorCommand to start-hyprland in sddm's configuration file in /etc/sddm.conf.d/ and the warning goes away. From then on SDDM should start properly whatever session you've chosen. At least it looks like that for me. |
|
the same error happens to me when I try launching it on Arch with UWSM, downgrading to |
|
I use hyprland's own flake and for some reason, uswm wouldn't find programs.fish.interactiveShellInit = lib.mkBefore ''
if uwsm check may-start -q
exec uwsm start ${config.programs.hyprland.package}/share/wayland-sessions/hyprland.desktop
end
''; |
|
I was going to open a separate discussion because I had an issue with uwsm and screen sharing specifically due to this warning. But since this is already open I will share my workaround for removing the warning and getting the desktop portal to function properly. I had an issue with screen sharing not working while launching with uwsm. I was trying to screenshare with discord but the display picker did not show up. My first course of action as to make sure that XDPH was installed, but since I am using the nixos module that is on by default. I then checked that qtwayland was installed but that didn't change the issue. Then I saw in the wiki that the XDG environment variables are important for the desktop portal to function properly https://wiki.hypr.land/Configuring/Environment-variables/#xdg-specifications. When I checked |
|
Is this because of the latest update or something else, like if I told you my scenario, I was switching to greeted + tuigreeet from SDDM, and the very first time I logged in saw this Warning. And haven't tested screen sharing and other functions yet, to see if they're working or not. As in this discussion, most people are from the Nix community, and being a Noob, will it also be the same for Arch, or might there also be some differences? |
|
In my case this wasn’t a Hyprland bug or anything NixOS-specific. Hyprland now shows this warning whenever it’s not launched via How I fixed it (greetd + tuigreet)I just changed the command in greetd’s config: Before: command = "tuigreet --cmd Hyprland --user-menu"After: command = "tuigreet --cmd start-hyprland --user-menu"File: /etc/greetd/config.tomlThen restart greetd or reboot: sudo systemctl restart greetd
# or rebootResult:
So the warning is valid, and the fix is simply making sure your display manager (in my case, greetd/tuigreet) launches |
|
I also encountered this problem after I updated Hyprland yesterday. I believe this is mostly not NixOS or UWSM specific. The issue arises since Hyprland changes its inner working. The fix is simple and works for all distros (e.g. with Specially, for those using UWSM (I don't use UWSM, but I guess the situation is): You cannot configure |
|
I don't have the exact same issue, but for me after the update the uwsm just doesn't work? There is no uwsm process and session starts without graphical-session.target. I was trying to debug it, but I am not sure how. Maybe someone else had the same issue |
|
I use ly and have the same warning when running without uswm. We have [Desktop Entry]
Name=Hyprland
Comment=An intelligent dynamic tiling Wayland compositor
Exec=/usr/bin/start-hyprland
Type=Application
DesktopNames=Hyprland
Keywords=tiling;wayland;compositor;So it tries to run the hyprland.desktop using The workaround for ly is to change |
|
I have Arch without any uwsm my config run but I also get this pop-up banner, how do I remove it? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello!
I've started getting this error on startup since updating the hyprland flake to rev
0467be86b18cfc324fab04afbd40fe9ef80f7fa9. Not sure that that's the rev that introduced it, as I don't update to every rev.I think this makes sense since uwsm in nixos is configured to run the
Hyprlandbinary directly, but is this intentional? I've tried locally patching my nix config to runstart-hyprlandfrom UWSM instead (withprograms.uwsm.waylandCompositors.hyprland.binPath = lib.mkForce "${hyprlandPackage}/bin/start-hyprland";), but then I get a warning aboutXDG_CURRENT_DESKTOPbeing managed externally. I haven't noticed any issues despite this warning (yet, at least). Is this the correct solution? Or should UWSM continue to runHyprlanddirectly, and then maybe a Hyprland gets a patch to suppress this error in this case?All reactions