Skip to content

discrepancy between getwindowclassname and search --classname for google chrome #55

Description

@eduard5557

Operating System: Kubuntu 26.04 LTS
KDE Plasma Version: 6.6.4
KDE Frameworks Version: 6.24.0
Qt Version: 6.10.2
Kernel Version: 7.0.0-22-generic (64-bit)
Graphics Platform: Wayland

I observed an inconsistency between Firefox and Chrome, not sure if I'm using this correctly or not. I get the window properties using qdbus6 org.kde.KWin /KWin queryWindowInfo

For Firefox

qdbus6 org.kde.KWin /KWin queryWindowInfo
    activities: dd8e24be-9fbf-494d-ba8c-4282f46e7dab
    caption: Mozilla Firefox Private Browsing
    clientMachine: 
    desktopFile: firefox
    desktops: 81d66064-80ba-4bd5-902f-de50f9355729
    ...
    resourceClass: firefox
    resourceName: firefox-bin
    role: 
    ...
    uuid: {1c798dd5-85d7-4d54-b56a-5e8d5084dfe0}

I get the classname from UUID then in reverse I get the same UUID from that classname

kdotool getwindowclassname {1c798dd5-85d7-4d54-b56a-5e8d5084dfe0}
  firefox
kdotool search --classname firefox
  {1c798dd5-85d7-4d54-b56a-5e8d5084dfe0}

**For Chrome **

qdbus6 org.kde.KWin /KWin queryWindowInfo
    activities: dd8e24be-9fbf-494d-ba8c-4282f46e7dab
    caption: Untitled - Google Chrome
    clientMachine: 
    desktopFile: google-chrome
    desktops: 81d66064-80ba-4bd5-902f-de50f9355729
    ...
    resourceClass: google-chrome
    resourceName: chrome
    role: 
    ...
    uuid: {76e08c67-680d-4c4a-b4a1-9fde8999dd8b}

I get the classname from UUID then in reverse I don't get the same UUID from the same classname

kdotool getwindowclassname {76e08c67-680d-4c4a-b4a1-9fde8999dd8b}
  google-chrome
kdotool search --classname google-chrome
  <nothing>

I'm not using it correctly or it's a little bug?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions