Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steam crashes tint2 System Tray #197

Open
Carlisle96 opened this issue Aug 24, 2023 · 11 comments
Open

Steam crashes tint2 System Tray #197

Carlisle96 opened this issue Aug 24, 2023 · 11 comments

Comments

@Carlisle96
Copy link

Carlisle96 commented Aug 24, 2023

Describe the bug
Using your fork of tint2, starting steam will crash the panel with the system Tray.

To Reproduce
Steps to reproduce the behavior:

  1. Run a panel with system tray.
  2. Start steam
  3. As soon as the symbol wants to appear, tint2 disappears.

Expected behavior
No crashes.

Desktop (please complete the following information):

  • OS: Fedora
  • XMonad
  • Tint2 Axarva fork

Additional context
Any ideas would be helpful, as I understand it is probably out of scope for your project, however it might be the best place to exchange some information about this issue.

@jzitnik-dev
Copy link
Contributor

I don't know if I understand correctly. Are you trying to start steam using the system tray and tint2 crashes?

Does steam start or does tint2 just crash?
If steam does not start, try starting steam from the terminal and give me the log.

And I also don't know if the whole tint2 crashes or just the system tray.

Also, try to kill tint2 with pkill tint2 and start only system tray from the terminal using ~/bin/tint2 -c ~/.config/tint2/panellauncher.tint2rc and try to start steam. It will output useful information to the terminal.

And I don't quite know what do you mean by system tray. Do you mean panellauncher.tint2rc?

@Carlisle96
Copy link
Author

Carlisle96 commented Sep 25, 2023

By system tray i mean this element of the panel:
image

I start steam by other means and when steam wants to create the icon in the system tray, the panel crashes. Other tint2 panels I still have are running fine.

Steam starts fine, but since the panel with the system tray is gone there will not be an icon in the tray.
Starting the tray again after steam is running works just fine.

Not sure how to include a file so i just share the log in the code here:
https://pastebin.com/VkhAzdxF

@jzitnik-dev
Copy link
Contributor

Sorry but i wasn't able to recreate this issue. But this is probably not problem with the Axarva's fork but with the main tint2 because in the Axarva's fork the system tray was not changed.
Maybe try to rebuild the binary from source: https://github.com/Axarva/tint2-1#latest-stable-release-1701

@Carlisle96
Copy link
Author

Seems to be that a glib2 update broke tint2.
Since tint2 is code frozen its not going to be fixed.
https://bbs.archlinux.org/viewtopic.php?id=284293

@Carlisle96
Copy link
Author

Could you upgrade the modified tint to the latest version 17.0.2 https://gitlab.com/o9000/tint2/ ?

It seems that the tint from this repository was forked from github which is behind the official gitlab release, or am i mistaken ?

❯ tint2 --version tint2: Using glib slice allocator (default). Run tint2 with environment variable G_SLICE=always-malloc in case of strange behavior or crashes tint2 version 16.2-67-g4571eb8

@Carlisle96
Copy link
Author

I investigated it a little bit further. Indeed it is not a problem of the fork and also happens on the latest version of tint2 as well as on this https://gitlab.com/nick87720z/tint2
Do you know any alternative Ideas for a good vertical system tray ?

@jzitnik-dev
Copy link
Contributor

I switched away from xorg 5 months ago. Before that i used tint2 but wasn't using the system tray. Now in wayland I'm using waybar. Unfortunately I don't know any better alternative to tint2.

@Carlisle96
Copy link
Author

As far as I know xmonad doesn't support Wayland. What WM are you using with Wayland?

@jzitnik-dev
Copy link
Contributor

jzitnik-dev commented Aug 11, 2024

Xmonad doesn't support wayland. I'm currently using Hyprland. Also I tried to again recreate the issue but wasn't able. Is it only happing with steam or with other programs too. I don't have steam installed but everything works fine with slack, discord and webcord.

Tried it with this generated config: https://github.com/JZITNIK-github/dotfiles/blob/main/.config/tint2/tint2rc

@jzitnik-dev
Copy link
Contributor

jzitnik-dev commented Aug 11, 2024

Also, this is definitely not the correct way to do it but it might work if it really bothers you that the tint2 is crashing. I thought starting tint2 like this:

tint2start() {
  while true; do
    tint2 -c ~/.config/tint2/tray.tint2rc
  done
}

tint2start &

@Carlisle96
Copy link
Author

Everything works - it is only steam that makes it crash :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants