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

Add back systray icons #177

Closed
kanru opened this issue Feb 6, 2024 · 7 comments · Fixed by #185
Closed

Add back systray icons #177

kanru opened this issue Feb 6, 2024 · 7 comments · Fixed by #185
Milestone

Comments

@kanru
Copy link
Member

kanru commented Feb 6, 2024

Is it intended to remove many icons? I tried current git-master (4f8f25c) and found icons are missing in several places.

Originally posted by @yan12125 in #172 (comment)

GtkStatusIcon is deprecated in GTK3 and removed from GTK4.

The replacement libindicator was unmaintained. The forked project libayatana-indicator does not support GTK4 yet (AyatanaIndicators/libayatana-appindicator#22)

The only path forward to restore systray icons is to either

  1. Partially implement the SNI (StatusNotifierItem) protocol by ourselves.
  2. Ship the tray icon as a separate binary that links to GTK3
@kanru kanru added this to the 2.0.0 milestone Feb 6, 2024
@kanru
Copy link
Member Author

kanru commented Feb 6, 2024

Alternatively we can revert the engine program back to GTK3 but the setup program to GTK4

@kanru
Copy link
Member Author

kanru commented Feb 6, 2024

看起來 ibus 也有自己的 systray?需要測試一下其他的 desktop 因為我太久只用 gnome 了

@yan12125
Copy link

yan12125 commented Feb 7, 2024

看起來 ibus 也有自己的 systray?需要測試一下其他的 desktop 因為我太久只用 gnome 了

是的。若使用 ibus-chewing 1.6.2,切換到新酷音之後可以看到兩個 XEmbed systray:

圖片

第一個可能是 ibus-daemon 本身的 systray,第二個是顯示目前的中/英與全形/半形模式(分別可用滑鼠左鍵及右鍵切換)。

而在 4f8f25c 上,第一個 systray 不再顯示藍底白字的「酷」圖示,也沒有第二個 systray。

我使用的是 LXQt on X11。

Partially implement the SNI (StatusNotifierItem) protocol by ourselves.

FWIW, some people consider SNI obsolete and were discussing a new spec: https://gitlab.freedesktop.org/xdg/xdg-specs/-/issues/84

@kanru
Copy link
Member Author

kanru commented Feb 7, 2024

Screenshot from 2024-02-08 00-03-24

@kanru
Copy link
Member Author

kanru commented Feb 8, 2024

晚點來看,可能可以利用 ibus 自己的 tray

@yan12125
Copy link

yan12125 commented Feb 8, 2024

感謝提到屬性面版。不過我自己並不使用 ibus-chewing, 只是 Arch Linux 軟體包 的維護者。日常使用的人的意見更為重要。

@yan12125
Copy link

第二個是顯示目前的中/英與全形/半形模式(分別可用滑鼠左鍵及右鍵切換)。

新的 systray 似乎沒有這項功能。或許可以在 change log 加以說明,並提到這是移除 X11 dependency 必要的妥協?

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

Successfully merging a pull request may close this issue.

2 participants