Skip to content

[BUG] nwg-displays fails on openSUSE: missing typelib-1_0-GtkLayerShell-0_1 package #1799

Description

@elppans

Describe the bug

Running nwg-displays fails with a ValueError/RuntimeError because the GTK Layer Shell GObject Introspection typelib is not available on the system, even though the underlying library may be installed.

Steps to reproduce

  1. Fresh ML4W (Hyprland) setup on openSUSE Tumbleweed
  2. Open a terminal and run nwg-displays
  3. See error

Expected behavior

nwg-displays should launch normally and let me configure display outputs, without raising a GtkLayerShell namespace error — provided the equivalent GTK Layer Shell library/typelib is installed on the system.


Root cause / fix
The missing piece was the typelib-1_0-GtkLayerShell-0_1 package — libgtk-layer-shell0 alone was already installed, but the GObject Introspection typelib is shipped separately on openSUSE and wasn't pulled in as a dependency:

sudo zypper install libgtk-layer-shell0 typelib-1_0-GtkLayerShell-0_1

After installing it, nwg-displays launches and works correctly (tested on openSUSE Tumbleweed, nwg-displays v0.4.3).

Environment

  • OS: openSUSE Tumbleweed
  • Desktop: Hyprland (ML4W setup)
  • Python: 3.13

Screenshots

Image
Image
Image

Distribution

Other (please specify below)

If Other, specify

openSUSE Tumbleweed

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions