NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.49k stars 12.99k forks source link

Telegram desktop does not leave an appindicator in GNOME's top bar #235512

Open MarkGhanz opened 1 year ago

MarkGhanz commented 1 year ago

Describe the bug

Given the extension "AppIndicator and KStatusNotifier Item Support" enabled, telegram desktop should leave an indicator in the top bar of GNOME, but it didn't.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Log in to GNOME 44 wayland session.
  2. Open telegram.
  3. Check if there's an appindicator.

Expected behavior

An indicator appears when telegram launches.

Screenshots

If applicable, add screenshots to help explain your problem. Screenshot from 2023-06-01 22-49-00

Additional context

I tried both telegram-desktop and tdesktop in configuration.nix.

Metadata

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

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.3.5, NixOS, 23.05 (Stoat), 23.05.20230531.3a70dd9`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(root): `"nixos-23.05, nixos-unstable"`
 - channels(karm2): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
NickCao commented 1 year ago

Could be a upstream issue: https://github.com/telegramdesktop/tdesktop/issues/25098, other gnome users report that tray icon works on xwayland.

guoard commented 2 months ago

I encounter the same issue due to the lack of a tray icon. Without it, there's no straightforward method to close Telegram, so it remains running in the background, continuously sending notifications.

I'm experiencing a similar issue with other programs, such as uget, where tray icons aren't being displayed.

I've encountered several other issues with GNOME on NixOS:

  1. Initially, there were no minimize and maximize icons on the titlebar buttons. To address this, I installed gnome-tweaks and manually enabled those icons.

  2. When I open multiple tabs of the same program, I can't switch between them using ALT + TAB. Instead, I have to use the super key and select the desired window with a mouse click.

  3. I haven't found a way to customize the windows bar at the bottom. In Ubuntu, there was an option for this, but I'm unsure if it's relevant to GNOME or not.

  4. Telegram media viewer doesn't work either, sound is playing but picture is not visible

If this isn't the appropriate platform for sharing my experience and seeking help with this issues, I apologize. Could you please direct me to the right place for assistance?

matteo-pacini commented 2 months ago

@guoard I'm experiencing the same - the media viewer issue seems to be related to a regression in Qt6-wayland.

Found this on the ArchLinux forum:

https://gitlab.archlinux.org/archlinux/packaging/packages/mutter/-/issues/5

Flatpak version runs fine (both tray icon and media viewer work as expected).

guoard commented 2 months ago

@matteo-pacini I appreciate your response! I've switched to KDE Plasma, so I'm unable to test the Flatpack version at the moment.