Skip to content

Niri service: workspace_added never gets emitted #457

Description

@MayNoii

System Information

Ignis 0.5+gdirty.d19700101
Current desktop: niri

os-release:
ANSI_COLOR="0;38;2;126;186;228"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="26.05pre-git"
CPE_NAME="cpe:/o:nixos:nixos:26.05"
DEFAULT_HOSTNAME=nixos
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
ID_LIKE=""
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 26.05 (Yarara)"
SUPPORT_URL="https://nixos.org/community.html"
VARIANT=""
VARIANT_ID=""
VENDOR_NAME=NixOS
VENDOR_URL="https://nixos.org/"
VERSION="26.05 (Yarara)"
VERSION_CODENAME=yarara
VERSION_ID="26.05"

Description

I am currently rewriting my workspaces widget to have animated transitions, so I need to have a list of workspaces that dynamically grows/shrinks (similar to the MPRIS configuration on the example bar) instead of simply binding over the workspaces property. And while the destroyed signal on the NiriWorkspace class works as intended, the workspace_added signal on NiriService never actually gets emitted.

How to reproduce

Try to connect to the workspace_added signal, the code will never run.

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions