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

Port to gnome 44 #1577

Merged
merged 7 commits into from
Mar 20, 2023
Merged

Conversation

istvan-derda
Copy link
Contributor

@istvan-derda istvan-derda commented Mar 11, 2023

This patch intends to add support for gnome 44 and is very much work in progress. If you don't want WIP PRs in the repo, I'll happily retract it and submit when I'm ready. I don't have much experience with contributing to open source, not 100% sure about the ins and outs.

Status of the PR:

  • Extension installable on Gnome 44
  • QuickToggle looks as on Gnome 43
  • Quick toggle will be rendered above the background apps menu
  • No suspicious gnome-shell warnings logged when manually testing the extension

The QuickToggle is appended after the 'Background Apps' menu item. This looks rather weird, but not outlandish.

❗ The QuickToggle is missing the icon it once had. I'm still looking into how it was originally displayed and how to bring it back.

Solves #1573

@istvan-derda
Copy link
Contributor Author

I spent some time reading the gnome-shell code - as far as I can tell there is no good solution for inserting the quick toggle reliably before the 'Background Apps' QuickSettingsItem. Other than that this patch is working fine on Gnome 44 :)

@istvan-derda istvan-derda changed the title Wip: Port to gnome 44 Port to gnome 44 Mar 12, 2023
Copy link
Contributor

@DaPigGuy DaPigGuy left a comment

Choose a reason for hiding this comment

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

GNOME 44
image

GNOME 43
image

The quick settings icon seems to have disappeared on GNOME 44...

@@ -41,7 +41,7 @@ const ServiceToggle = GObject.registerClass({

_init() {
super._init({
label: 'GSConnect',
title: 'GSConnect',
Copy link
Contributor

@DaPigGuy DaPigGuy Mar 12, 2023

Choose a reason for hiding this comment

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

This breaks compatibility for GNOME 43 despite 43 being included as supported in the extension metadata

Copy link
Member

Choose a reason for hiding this comment

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

I didn't test yet, thanks for the testing help! In general we only support the latest shell version, so the correct solution is to drop 43 from metadata.json

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching that, I totally missed it. @daniellandau If you have the time to fix the missing icon feel free - otherwise I'll try to come back to this when I have time. :)

@istvan-derda
Copy link
Contributor Author

GNOME 44 image

GNOME 43 image

The quick settings icon seems to have disappeared on GNOME 44...

should be fixed with the latest commit. Thanks for catching it though!

image

@istvan-derda istvan-derda force-pushed the feat/port-to-gnome-44 branch from 634abe1 to df34aad Compare March 18, 2023 23:25
@daniellandau
Copy link
Member

Took a while to manage finding a 'background app', but yes indeed that's a bad place for the quicktoggle. Otherwise looking really good and I understood in Matrix that you should have an idea already on how to fix it. (Might want to contribute the fix to caffeine too BTW)

@istvan-derda
Copy link
Contributor Author

Took a while to manage finding a 'background app', but yes indeed that's a bad place for the quicktoggle. Otherwise looking really good and I understood in Matrix that you should have an idea already on how to fix it. (Might want to contribute the fix to caffeine too BTW)

Yes, @andyholmes helped me out there. That behavior is now fixed :)

@istvan-derda istvan-derda force-pushed the feat/port-to-gnome-44 branch from cf1abee to 25b3fb4 Compare March 19, 2023 15:34
src/extension.js Outdated Show resolved Hide resolved
Add missing semicolon

Co-authored-by: DaPigGuy <[email protected]>
@andyholmes
Copy link
Collaborator

LGTM, let's merge this so we can get some testing before Wednesday when GNOME 44 drops.

Thanks for the work everyone!

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 this pull request may close these issues.

4 participants