NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.12k stars 13.41k forks source link

Steam icon is broken and huge with gnome-shell #87774

Closed bbigras closed 6 months ago

bbigras commented 4 years ago

Describe the bug The steam icon is broken and makes the systray huge.

To Reproduce Steps to reproduce the behavior:

  1. install steam system wide (environment.systemPackages)
  2. run Steam with gnome

Expected behavior

Screenshots

The flameshot icon will return to the normal size if I close steam.

The Steam icon is the first ugly one on the left.

image

Additional context Resolution: 1920x1080

Notify maintainers @jagajaga

Metadata

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
SFrijters commented 4 years ago

Not sure if it's the same bug, but my Steam icon is also broken (same placeholder icon as you have in your screenshot, although not huge) with openbox + tint2 (also tried with another tray). Using NixOS with nixpkgs master.

dtzWill commented 4 years ago

My awesomewm setup has had a borked steam icon for some time, as well. Hmm.. does the icon work for any environment, such as KDE perhaps?

Valodim commented 4 years ago

I faced a similar issue with the steam icon in stalonetray, where the icon was displayed correctly, but way too big. I was able to fix it by specifying the "force_icons_size" kludge.

i.e. in home-manager:

  services.stalonetray = {
    enable = true;
    config = {
      icon_size = 16;
      slot_size = 24;
      kludges = "force_icons_size";
    };
  };

Might be a problem of steam not providing a correct icon, rather than the tray program displaying it incorrectly?

bbigras commented 4 years ago

I still have the broken icon but it's small now. I wonder if something changed in the distro or if it's because I changed my config and probably imported some themes.

bryanasdev000 commented 3 years ago

+1 from my awesomewm setup, running everything at unstable here.

jsynacek commented 3 years ago

I get the broken icon as well on Xfce4.

bbigras commented 3 years ago

I don't have the broken icon anymore on Gnome and it's the right size. I probably just installed a theme while stealing borrowing stuff from someone else config. I'll try to find which theme did that.

bbigras commented 3 years ago

I tried to remove all my themes but the icon is still working. Maybe there's something cached on my side.

Here's what I use for gnome: https://github.com/bbigras/nix-config/blob/1fab839e92f0170d988fee8c10b9fd9f010cdeda/gnome.nix#L4-L11

The Steam icon also works for sway on my laptop.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

bryanasdev000 commented 3 years ago

Hmm, still broken here :(

SeraphyBR commented 3 years ago

Same with awesome

figsoda commented 3 years ago

snixembed might be able to fix this https://github.com/NixOS/nixpkgs/pull/131361

bryanasdev000 commented 2 years ago

snixembed might be able to fix this #131361

It works here :) thanks!

steam

stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info

dixslyf commented 1 year ago

My Steam icon is also broken with polybar's tray when launching via rofi. Correct size, but missing icon. Interestingly, running steam from a terminal fixes it. Probably has something to do with how I configure my theming stuff with home-manager? snixembed does make it show properly, but using it makes all tray icons always show (some programs e.g. udiskie can hide their tray icon when certain conditions are met).

dixslyf commented 1 year ago

Related: https://github.com/NixOS/nixpkgs/issues/124965#issuecomment-904020549 That workaround fixes the icon in the systray, but breaks the icons in rofi. I'm guessing the root issue is with launchers that use gdk-pixbuf.

raspher commented 6 months ago

Is this still relevant?

bbigras commented 6 months ago

Not for me.