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

fix: fallback to GtkStatusIcon when app indicator is not supported #36815

Merged
merged 3 commits into from
Jan 26, 2023

Conversation

zcbenz
Copy link
Member

@zcbenz zcbenz commented Jan 6, 2023

Description of Change

Fix #36602.
Refs #36333.

Some desktop environments (for example i3wm) does not support the modern app indicator, and we have to fallback to use the deprecated GtkStatusIcon API to make tray icons show there.

Release Notes

Notes: Fix tray icon not showing on desktop environments that have no support for app indicator.

@zcbenz zcbenz added target/22-x-y PR should also be added to the "22-x-y" branch. target/23-x-y PR should also be added to the "23-x-y" branch. labels Jan 6, 2023
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jan 6, 2023
@zcbenz zcbenz added the semver/patch backwards-compatible bug fixes label Jan 6, 2023
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jan 7, 2023
@codebytere codebytere requested a review from ckerr January 10, 2023 09:06
Copy link
Member

@ckerr ckerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@zcbenz zcbenz merged commit c303135 into main Jan 26, 2023
@zcbenz zcbenz deleted the tray-gtk-backend branch January 26, 2023 10:15
@release-clerk
Copy link

release-clerk bot commented Jan 26, 2023

Release Notes Persisted

Fix tray icon not showing on desktop environments that have no support for app indicator.

@trop
Copy link
Contributor

trop bot commented Jan 26, 2023

I was unable to backport this PR to "22-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot added needs-manual-bp/22-x-y and removed target/22-x-y PR should also be added to the "22-x-y" branch. labels Jan 26, 2023
@trop
Copy link
Contributor

trop bot commented Jan 26, 2023

I have automatically backported this PR to "23-x-y", please check out #37033

@trop trop bot added in-flight/23-x-y and removed target/23-x-y PR should also be added to the "23-x-y" branch. labels Jan 26, 2023
zcbenz added a commit that referenced this pull request Jan 26, 2023
…36815)

* chore: get ready for multi backend tray

* fix: fallback to GtkStatusIcon when app indicator is not supported

* chore: use smart pointers
@trop
Copy link
Contributor

trop bot commented Jan 26, 2023

@zcbenz has manually backported this PR to "22-x-y", please check out #37034

@trop trop bot added in-flight/22-x-y merged/23-x-y PR was merged to the "23-x-y" branch. and removed needs-manual-bp/22-x-y labels Jan 26, 2023
@trop trop bot removed the in-flight/23-x-y label Jan 26, 2023
codebytere pushed a commit that referenced this pull request Jan 26, 2023
…37034)

* refactor: make StatusIconType an enum class (#36554)

Co-authored-by: Milan Burda <miburda@microsoft.com>

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Milan Burda <miburda@microsoft.com>

* fix: fallback to GtkStatusIcon when app indicator is not supported (#36815)

* chore: get ready for multi backend tray

* fix: fallback to GtkStatusIcon when app indicator is not supported

* chore: use smart pointers

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Milan Burda <miburda@microsoft.com>
@trop trop bot added merged/22-x-y PR was merged to the "22-x-y" branch. and removed in-flight/22-x-y labels Jan 26, 2023
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
…lectron#36815)

* chore: get ready for multi backend tray

* fix: fallback to GtkStatusIcon when app indicator is not supported

* chore: use smart pointers
gecko19 pushed a commit to brightsign/electron that referenced this pull request Feb 28, 2023
…lectron#36815)

* chore: get ready for multi backend tray

* fix: fallback to GtkStatusIcon when app indicator is not supported

* chore: use smart pointers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/22-x-y PR was merged to the "22-x-y" branch. merged/23-x-y PR was merged to the "23-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: No Tray icon for Arch Linux
2 participants