xplshn / wayland-imd

The Integrated Modular Desktop. A set of modular programs that interact with the Wayland protocols and each other to create a desktop-like experience on most Wayland window managers (from tiling to stacking).
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed #2

Open donovanglover opened 1 month ago

donovanglover commented 1 month ago

Was trying to run i2ywm on Hyprland with NixOS and ran into the following error:

(process:343732): Gtk-CRITICAL **: 16:08:03.425: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
2024/09/04 16:08:03 Failed to load icon for /home/user/Desktop/test.txt: cgo returned unexpected nil pointer

No idea how to fix but leaving this here in case someone comes across the same issue.

donovanglover commented 1 month ago

Nix derivation in case someone wants to continue working on this:

{
  buildGo123Module,
  fetchFromGitHub,
  pkg-config,
  gtk3,
  gtk-layer-shell,
}:

buildGo123Module rec {
  pname = "i2ywm";
  version = "0-unstable-2024-08-30";

  src = fetchFromGitHub {
    owner = "xplshn";
    repo = "wayland-imd";
    rev = "a7b1f1392f6fc21d140058216410c37bb8044a1a";
    hash = "sha256-WyK9+hZGZmrTidjN0FWf0rV+gyNG6rWUTuPVYFGsR1E=";
  };

  sourceRoot = "${src.name}/i2ywm";

  vendorHash = "sha256-8rmXJjX4JkpEfU6NYaBhT1UydwOi5xC2Cnm9+Gm5+nw=";

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    gtk3
    gtk-layer-shell
  ];
}