Skip to content
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

hyprland-session.service broken #8515

Closed
1 task done
mylinuxforwork opened this issue Nov 18, 2024 · 15 comments
Closed
1 task done

hyprland-session.service broken #8515

mylinuxforwork opened this issue Nov 18, 2024 · 15 comments
Labels
bug Something isn't working

Comments

@mylinuxforwork
Copy link

Already reported ? *

  • I have searched the existing open and closed issues.

Regression?

Yes

System Info and Version

System/Version info
<Paste the output of the command here>

Description

Just installed yay -S hyprland to 0.45.1
Hyprland isn't starting anymore.

The reason is the broken /usr/lib/systemd/usr/hyprland-session.service

[Service]
Type=notify
ExecStart=/usr//usr/bin/Hyprland
ExecStop=/usr//usr/bin/hyprctl dispatch exit
ExecStopPost=systemctl --user unset-environment DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP
Restart=on-failure
Slice=session.slice

The ExecStart and ExecStop paths are wrong.

How to reproduce

Install 0.45.1 and try to start Hyprland with sddm or Hyprland command.

Crash reports, logs, images, videos

No response

@mylinuxforwork mylinuxforwork added the bug Something isn't working label Nov 18, 2024
@mylinuxforwork
Copy link
Author

Platform is EndeavourOS in KVM Virtual Machine.

@mylinuxforwork
Copy link
Author

Changed the paths to /usr/bin/ but Hyprland isn't starting anymore. Works perfectly with 045.1-1. Any ideas?

@fufexan
Copy link
Member

fufexan commented Nov 18, 2024

Duplicate of #8340. Use UWSM instead.

Also 0.45.1 no longer contains the service file. That may be a leftover from previous versions.

@fufexan fufexan closed this as not planned Won't fix, can't repro, duplicate, stale Nov 18, 2024
@mylinuxforwork
Copy link
Author

Duplicate of #8340. Use UWSM instead.

Also 0.45.1 no longer contains the service file. That may be a leftover from previous versions.

Thanks. I will test it. But this has a really big impact. Especially if only Hyprland is installed as the one DE.

I think, a super easy step by step guide is required to explain this new setup. I am receiving many requests from users with completely broken systems.

@mylinuxforwork
Copy link
Author

mylinuxforwork commented Nov 18, 2024

@fufexan Followed your guide in UWSM but cannot find the uwsm session for Hyprland in /usr/share/wayland-sessions

How to start Hyprland after installing uwsm with sddm?

@fufexan
Copy link
Member

fufexan commented Nov 18, 2024

Make sure Hyprland has been built with systemd support. For some reason it's not automatically detected by meson (iirc the Arch package uses meson), so the flag has to be passed explicitly -Dsystemd=enabled, and also -Duwsm=enabled. The latter should be auto-enabled if systemd is also enabled though.

@mylinuxforwork
Copy link
Author

Make sure Hyprland has been built with systemd support. For some reason it's not automatically detected by meson (iirc the Arch package uses meson), so the flag has to be passed explicitly -Dsystemd=enabled, and also -Duwsm=enabled. The latter should be auto-enabled if systemd is also enabled though.

This is not for beginners. How does existing Hyprland users know that? Arch users are installing or updating Hyprland with sudo pacman -S hyprland resulting in a broken system.

All of my test systems are broken after running just yay.

Is there a way to make the update to 0.45.1 more user friendly fro Arch and Endeavour users?

@Neo-29
Copy link

Neo-29 commented Nov 18, 2024

I can confirm... It's BROKEN. Please consider that you've got users and not developers only at the end of the line.
This is important.

@mylinuxforwork
Copy link
Author

Just restarted my Laptop with 0.45.1 with no issues.

Maybe it's only a KVM VM issue?

@Neo-29
Copy link

Neo-29 commented Nov 18, 2024

Just restarted my Laptop with 0.45.1 with no issues.

Maybe it's only a KVM VM issue?

Could be.
I'm on kvm too.
Something to investigate.

@fufexan
Copy link
Member

fufexan commented Nov 18, 2024

Is there a way to make the update to 0.45.1 more user friendly fro Arch and Endeavour users?

Check whether the PKGBUILDS are wrong, and if so, contact the package maintainers. However the systemd meson feature has been available for a long time now, shouldn't cause issues. The uwsm feature was added and enabled by default, so that also shouldn't cause issues.

I have no experience with KVM VMs, so I can't assist there.

@mylinuxforwork
Copy link
Author

Is there a way to make the update to 0.45.1 more user friendly fro Arch and Endeavour users?

Check whether the PKGBUILDS are wrong, and if so, contact the package maintainers. However the systemd meson feature has been available for a long time now, shouldn't cause issues. The uwsm feature was added and enabled by default, so that also shouldn't cause issues.

I have no experience with KVM VMs, so I can't assist there.

Thank you for your feedback. I will create a new Arch Linux VM with Hyprland profile in a VM and will try again.

@fufexan
Copy link
Member

fufexan commented Nov 19, 2024

There is a similar report in aquamarine hyprwm/aquamarine#109
This seems to be a Hyprland issue related to VMs rather than a service issue.
@gulafaran @UjinT34 can you take a look at the above? Seems it references your commits.

@Stewart86
Copy link

Looks more likely to be a VM issue. I am running @mylinuxforwork dotfiles and install script, with fully updated Arch OS on bare metal without any problem. Was trying to fix a problem that wasn't on my system for the past hours. Here's what I've got.

  1. Hyprland Version I am running:
    image
  2. uwsm was not installed
  3. installing uwsm did nothing.
  4. tried 'Hyprland (systemd)` option in sddm, did not load (black screen).
  5. however, the normal Hyprland option in sddm properly started as usual.

@Stewart86
Copy link

update:
added an entry into sddm .desktop file like so:
image

and started with the new option in sddm without an issue too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants