NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.62k stars 13.77k forks source link

chatterino2: no window decoration in Gnome on non NixOS #345644

Open kabessao opened 3 days ago

kabessao commented 3 days ago

Describe the bug

Building Chatterino2 on Gnome in a non NixOS system gives me an application that doesn't have window decorations in any of it's windows.

Steps To Reproduce

Steps to reproduce the behavior:

  1. in any Gnome system that isn't NixOS ( haven't tested on nixos with gnome itself ) install chatterino2 either by nix-env, nix-shell, or with home-manager

Expected behavior

I expect that the application could have window decorations. I know Gnome has that whole thing about expecting applications to provide the window decoration, but I've heard that there are ways to make it happen. Sorry in advance if that's not really the case.

Screenshots

Here's a side by side print of a working chatterino application (left) against the one installed through home-manager (right): image

In here you can see that even in other windows, like the config screen, also has no window decorations. image

Additional context

I'm using Nobara Linux 40, Gnome 46.4, and I've installed this in a fresh install of Home-Manager so I can learn Nix and migrate to NixOS in the future.

I have tested with different versions of nix repos and still no luck

Notify maintainers

@rexim @0Supa

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 6.11.0-201.fsync.fc40.x86_64, Nobara Linux, 40 (GNOME Edition), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.1`
 - channels(root): `"home-manager, nixpkgs, oldnix-24.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Add a :+1: reaction to issues you find important.

0Supa commented 3 days ago

This doesn't seem like an issue with the package itself. Could you see if https://github.com/NixOS/nixpkgs/issues/339608#issuecomment-2331172290 fixes your issue?

kabessao commented 2 days ago

I tried and it's still the same image

kabessao commented 1 day ago

quick update, I've been trying different versions from here: https://lazamar.co.uk/nix-versions/?channel=nixpkgs-unstable&package=chatterino2

Turns out that version 2.4.6 works as expected, with window decoration and everything

nix-shell -p chatterino2 -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/e89cf1c932006531f454de7d652163a9a5c86668.tar.gz

while the latest version doesn't

nix-shell -p chatterino2 -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/05bbf675397d5366259409139039af8077d695ce.tar.gz

here's another side to side comparison. version 2.4.6 (left) and the latest version 2.5.1 (right), now both from nixpkgs. image

kabessao commented 1 day ago

From what I could understand, with my rather small understanding of nix code, the newest version is adding the qt6.qtwayland package, while the version 2.4.6 does not include that.

And sure enough, the older version is running under xwayland, and because of that it works, while the newest version is running natively on wayland, and because Gnome doesn't do window decoration you'll see none in it.

kabessao commented 1 day ago

Did more tests by following the build instructions in here https://github.com/Chatterino/chatterino2/blob/master/BUILDING_ON_LINUX.md

When building inside a Fedora 39 distrobox and following the instructions specifically for Fedora 39 I get a working chatterino, with window decorations and everything.

When building inside a nix shell following the instructions described specifically for NixOS I get a chatterino app with no window decorations.