hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.63k stars 827 forks source link

Hyprcursor: no fallback found for a cursor in setCursorFromName #5654

Open Skizy opened 4 months ago

Skizy commented 4 months ago

Hyprland Version

System/Version info ```sh Hyprland, built from branch at commit fe7b748eb668136dd0558b7c8279bfcd7ab4d759 (props: bump version to 0.39.1). Date: Tue Apr 16 16:01:03 2024 Tag: v0.39.1, commits: 4460 flags: (if any) System Information: System name: Linux Node name: skizy-desktop Release: 6.8.7-arch1-1 Version: #1 SMP PREEMPT_DYNAMIC Wed, 17 Apr 2024 15:20:28 +0000 GPU information: 26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X] [1002:699f] (rev c7) (prog-if 00 [VGA controller]) os-release: NAME="EndeavourOS" PRETTY_NAME="EndeavourOS" ID="endeavouros" ID_LIKE="arch" BUILD_ID="2023.05.28" ANSI_COLOR="38;2;23;147;209" HOME_URL="https://endeavouros.com" DOCUMENTATION_URL="https://discovery.endeavouros.com" SUPPORT_URL="https://forum.endeavouros.com" BUG_REPORT_URL="https://forum.endeavouros.com/c/arch-based-related-questions/bug-reports" PRIVACY_POLICY_URL="https://endeavouros.com/privacy-policy-2" LOGO="endeavouros" plugins: hyprexpo by Vaxry ver 1.0 ```

Bug or Regression?

Bug

Description

Hyprcursor themes don't work at all, always falls back to a default black cursor. Setting both via env variables and hyprctl setcursor leads to the same result. Relevant Hyprland logs:

[hc] getShapesC: found 0 images for left_ptr
[hc] getShapesC: found 0 images for default
[hc] getShapesC: found 0 images for left_ptr
[ERR] BUG THIS: No fallback found for a cursor in setCursorFromName

Though there are left_ptr.hlc files in all themes I tried. It does find the theme when setting the theme using hyprctl setcursor:

[hc] getFullPathForThemeName: found /home/skizy/.local/share/icons/bibata-amber
[hc] Found theme Bibata-Modern-Amber at /home/skizy/.local/share/icons/bibata-amber

How to reproduce

Put a hyprcursor theme into ~/.local/share/icons Run hyprctl setcursor <theme-name> <size> Move the cursor over the background or over an app that supports server-side cursors

Crash reports, logs, images, videos

No response

vaxerski commented 4 months ago

means your theme is broken. I am gonna bet you're trying to smash a source theme there and haven't compiled it.

Skizy commented 4 months ago

Well, I might be understanding it incorrectly, but the directory with the theme contains a manifest.hl and a hyprcursors directory, which in turn contains .hlc files, which are, as I understand, compiled cursors

vaxerski commented 4 months ago

hm, that's compiled. Yeah. Have you tried a different theme?

Skizy commented 4 months ago

I tried 2 Bibata variants and a rose-pine port, I found out that rose-pine cursors work if set with the env variable, but don't work when setting with hyprctl setcursor