hyprland-community / pyprland

Scratchpads & many goodies for Hyprland [maintainer=@fdev31]
MIT License
345 stars 15 forks source link

[BUG] Fail to parse hyprctl version on Hyprland built from git #89

Closed AThePeanut4 closed 4 months ago

AThePeanut4 commented 4 months ago

Pyprland version 2.2.11

Describe the bug When using Hyprland built from the git repo (i.e. not a tagged release), pypr shows a Fail to parse hyprctl version error notification message on startup.

In the output of hyprctl -j version, the tag property is v0.39.1-59-ga2366f78 for me, so I believe this https://github.com/hyprland-community/pyprland/blob/9254265fceac5059ecd4fa1bac35673304f49c01/pyprland/plugins/pyprland.py#L13-L20 just needs to discard the potential suffix before doing split(".").

fdev31 commented 4 months ago

Thank you for this report! I'll take care of it soon!