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

[Bug] When starting Hyprland from ly XDG_CURRENT_DESKTOP value is blank. #702

Open
1 task done
whyok456 opened this issue Oct 10, 2024 · 9 comments
Open
1 task done
Labels
bug This issue or pull request discusses a bug

Comments

@whyok456
Copy link

whyok456 commented Oct 10, 2024

Pre-requisites

  • I have looked for any other duplicate issues

Ly version

Ly version 1.1.0-dev.101+e885a5e

Observed behavior

When starting Hyprland from ly XDG_CURRENT_DESKTOP doesn't start xdg-portal for hyprland. Which means I can't use apps like obs.

Expected behavior

On other display managers like sddm and greetd it doesn't show any error.

Steps to reproduce

  1. install ly from the compiling steps
  2. try to launch Hyprland
  3. shows this error

Relevant logs

Screenshot-2024-10-10_21:15:40

@whyok456 whyok456 added the bug This issue or pull request discusses a bug label Oct 10, 2024
@whyok456
Copy link
Author

ok well nvm it can be fixed by adding

env = XDG_CURRENT_DESKTOP,Hyprland

to /.config/hypr/hyprland.conf, though it's still weird it gives this error by default

@AnErrupTion
Copy link
Collaborator

@whyok456 Hey there! This actually isn't the correct solution, only a workaround. Can you send the output of your Hyprland desktop file in /usr/share/wayland-sessions please?

@devlsh
Copy link

devlsh commented Oct 20, 2024

@AnErrupTion

[Desktop Entry]
Name=Hyprland
Comment=An intelligent dynamic tiling Wayland compositor
Exec=Hyprland
Type=Application

also having this issue!

@AnErrupTion
Copy link
Collaborator

@devlsh What distribution are you using? Whoever packaged Hyprland for it forgot to add the DesktopNames attribute. This means it isn't an Ly issue but a packaging issue.

@whyok456
Copy link
Author

whyok456 commented Oct 21, 2024

@whyok456 Hey there! This actually isn't the correct solution, only a workaround. Can you send the output of your Hyprland desktop file in /usr/share/wayland-sessions please?

same as devlsh

[Desktop Entry]
Name=Hyprland
Comment=An intelligent dynamic tiling Wayland compositor
Exec=Hyprland
Type=Application

and I got hyprland off pacman

Screenshot-2024-10-21_19:48:15

@whyok456 whyok456 reopened this Oct 21, 2024
@pgrond
Copy link

pgrond commented Oct 21, 2024

Yep, can confirm this. Also on Arch.

@AnErrupTion
Copy link
Collaborator

Looks like the issue got fixed in master, but it hasn't yet been released. Not sure if you can report this as a bug to the person packaging it so they can fix it, or if they prefer waiting for a new release.

@matejdro
Copy link

Can we add an option to not set this variable in the first place? As shown on the image on the original post, Hyprland manages this on its own and warns if it is externally managed.

@alexdaguy
Copy link

The fix for hyprland seems to have been pushed out to arch now. To avoid this situation for other desktops, maybe you could make it so that the variable isn't set if DesktopNames is missing from the .desktop file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request discusses a bug
Projects
None yet
Development

No branches or pull requests

6 participants