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 cant register #5

Open
Sarthak950 opened this issue Jan 1, 2025 · 15 comments
Open

Hyprland cant register #5

Sarthak950 opened this issue Jan 1, 2025 · 15 comments

Comments

@Sarthak950
Copy link

image
after installing it and enabling
it shows this error
image
And yes i have restarted the machine

@raybbian
Copy link
Owner

raybbian commented Jan 1, 2025

Can I see the output of hyprland -v?

@Sarthak950
Copy link
Author

@raybbian

❯ hyprland -v
Hyprland 0.46.0 built from branch main at commit c600e1aaff293303c8256aca7d2889fc4289e8c2  ([gha] Nix: update inputs).
Date: Sat Dec 28 03:21:12 2024
Tag: v0.46.0-40-gc600e1aa, commits: 5595
built against:
 aquamarine 0.5.1
 hyprlang 0.6.0
 hyprutils 0.3.0
 hyprcursor 0.1.11
 hyprgraphics 0.1.1


no flags were set

@Hy4ri
Copy link

Hy4ri commented Jan 1, 2025

image after installing it and enabling it shows this error image And yes i have restarted the machine

hyprpm update fixed it for me

@Sarthak950
Copy link
Author

@Hy4ri i did hyprpm update and it didnt fix it for me

@iamSt3el
Copy link

iamSt3el commented Jan 1, 2025

@Sarthak950 i think you have to update hyprland. My hyprland version is 0.46.2, and the plugin is working fine.

@Alumniminium
Copy link

having the same issue on 0.46.2, updating hyprpm didn't work

@raybbian
Copy link
Owner

raybbian commented Jan 1, 2025

When you added the plugin with hyprpm add, did it fail to build? Can you try building the plugin manually with the directions from here?

@ninetailedtori
Copy link

When you added the plugin with hyprpm add, did it fail to build? Can you try building the plugin manually with the directions from here?

Hyprpm will state it's fully loaded etc, when adding through itself, but hyprland itself will not detect the plugin. When compiled through git clone then meson build then manually hyprctl loading the .so library, everything works A-OK!

@raybbian
Copy link
Owner

raybbian commented Jan 2, 2025

When compiled through git clone then meson build then manually hyprctl loading the .so library, everything works A-OK!

I see. Could be something to do with hyprpm then. I'm assuming you ran hyprpm update after hyprpm add?

@ninetailedtori
Copy link

Yep, ran hyprpm add, then hyprpm enable, then hyprpm update, even reloaded the whole WM, and restarted, nothing changed. It reads as "enabled" in hyprpm list and it also shows as completely fine built but I wonder why it can't find anything...
It's a bit weird, I think hyprpm is doing something funky but there's no verbose option to see the steps, as it's all quite hidden away :(

I'll do an angrysearch on the library and see if it's found somewhere but just not pathing, but that would be very very odd.

@DaniNotFound702
Copy link

i fixed it by putting a line in your config like this
plugin=/path/to/.so/file
and it works for me!

@ninetailedtori
Copy link

Seems fixed in the latest commits after a hyprpm update again 🥴 still having that issue where the first attempt at hyprpm update just hangs, and needs to be user-interrupted then reattempted to fully build for some reason.

@raybbian
Copy link
Owner

raybbian commented Jan 3, 2025

Try running hyprpm update -v to enable verbose logging, it should point you to what's hanging.

@ninetailedtori
Copy link

ninetailedtori commented Jan 4, 2025

Tried it, absolutely no messages, it just never builds for some reason the first time. Next time I restart I'll get you the logs. Seems I need to add a hyprpm update to my exec/exec-once on startup because it doesn't seem to be loading hyprtasking, like it's volatilely tagging the library on the command each time or smth...

@ninetailedtori
Copy link

tori/protocols/pointer-constraints-unstable-v1.hpp
[32/48] Generating /run/user/1000/hyprpm/hyprland-tori/protocols/xdg-activation-v1.cpp, /run/user/1000/hyprpm/hyprland-tori/protocols/xdg-activation-v1.hpp
[33/48] Generating /run/user/1000/hyprpm/hyprland-tori/protocols/ext-idle-notify-v1.cpp, /run/user/1000/hyprpm/hyprland-tori/protocols/ext-idle-notify-v1.hpp
[34/48] Generating /run/user/1000/hyprpm/hyprland-tori/protocols/ext-session-lock-v1.cpp, /run/user/1000/hyprpm/hyprland-tori/protocols/ext-session-lock-v1.hpp
[35/48] Generating /run/user/1000/hyprpm/hyprland-tori/protocols/presentation-time.cpp, /run/user/1000/hyprpm/hyprland-tori/protocols/presentation-time.hpp
[36/48] Generating /run/user/1000/hyprpm/hyprland-tori/protocols/tablet-v2.cpp, /run/user/1000/hyprpm/hyprland-tori/protocols/tablet-v2.hpp
[37/48] Generating /run/user/1000/hyprpm/hyprland-tori/protocols/xwayland-shell-v1.cpp, /run/user/1000/hyprpm/hyprland-tori/protocols/xwayland-shell-v1.hpp
[38/48] Generating /run/user/1000/hyprpm/hyprland-tori/protocols/primary-selection-unstable-v1.cpp, /run/user/1000/hyprpm/hyprland-tori/protocols/primary-selection-unstable-v1.hpp
[39/48] Generating /run/user/1000/hyprpm/hyprland-tori/protocols/viewporter.cpp, /run/user/1000/hyprpm/hyprland-tori/protocols/viewporter.hpp
[40/48] Generating /run/user/1000/hyprpm/hyprland-tori/protocols/xdg-shell.cpp, /run/user/1000/hyprpm/hyprland-tori/protocols/xdg-shell.hpp
[41/48] Generating /run/user/1000/hyprpm/hyprland-tori/protocols/linux-drm-syncobj-v1.cpp, /run/user/1000/hyprpm/hyprland-tori/protocols/linux-drm-syncobj-v1.hpp
[42/48] Generating /run/user/1000/hyprpm/hyprland-tori/protocols/drm-lease-v1.cpp, /run/user/1000/hyprpm/hyprland-tori/protocols/drm-lease-v1.hpp
[43/48] Generating /run/user/1000/hyprpm/hyprland-tori/protocols/xdg-dialog-v1.cpp, /run/user/1000/hyprpm/hyprland-tori/protocols/xdg-dialog-v1.hpp
[44/48] Generating /run/user/1000/hyprpm/hyprland-tori/protocols/linux-dmabuf-v1.cpp, /run/user/1000/hyprpm/hyprland-tori/protocols/linux-dmabuf-v1.hpp
[45/48] Generating /run/user/1000/hyprpm/hyprland-tori/protocols/single-pixel-buffer-v1.cpp, /run/user/1000/hyprpm/hyprland-tori/protocols/single-pixel-buffer-v1.hpp
[46/48] Generating /run/user/1000/hyprpm/hyprland-tori/protocols/security-context-v1.cpp, /run/user/1000/hyprpm/hyprland-tori/protocols/security-context-v1.hpp
[47/48] Generating /run/user/1000/hyprpm/hyprland-tori/protocols/wayland.cpp, /run/user/1000/hyprpm/hyprland-tori/protocols/wayland.hpp
find src -name '*.h*' -print0 | cpio --quiet -0dump /home/tori/.local/share/hyprpm/headersRoot/include/hyprland
cp ./protocols/*.h* /home/tori/.local/share/hyprpm/headersRoot/include/hyprland/protocols
cp ./build/hyprland.pc /home/tori/.local/share/hyprpm/headersRoot/share/pkgconfig
if [ -d /usr/share/pkgconfig ]; then cp ./build/hyprland.pc /usr/share/pkgconfig 2>/dev/null || true; fi
chmod -R 755 /home/tori/.local/share/hyprpm/headersRoot/include/hyprland
chmod 755 /home/tori/.local/share/hyprpm/headersRoot/share/pkgconfig

✔ installed headers                                                                                                                         
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  5 / 5  Done!                                                                           

→ checking for updates for Hyprtasking                                                                                                      
→ Cloning https://github.com/raybbian/hyprtasking                                                                                           
✔ repository Hyprtasking has updates.                                                                                                       
→ Building Hyprtasking                                                                                                                      
✔ found hyprpm manifest                                                                                                                     
→ Manifest has 1 pins, checking                                                                                                             
→ Building hyprtasking                                                                                                                      
 ━━━━━━━━━━━━━━━━╍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  2 / 6  Updating Hyprtasking ^C⏎    

Freezes here :) then on the rebuild it's fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants