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 TopIcons no longer working with gnome-shell < 3.33.90 #136

Merged
merged 1 commit into from Apr 14, 2020

Conversation

robin-a-meade
Copy link
Contributor

This fixes the following error:
gnome-shell: JS ERROR: TypeError: Main.extensionManager is undefined
onTrayIconAdded@/usr/share/gnome-shell/extensions/TopIcons@phocean.net/extension.js:85:1

Related:
43f991d#diff-06f1274e40de25abda72d812b1cce86a
https://bugzilla.redhat.com/show_bug.cgi?id=1767544

This fixes the following error:
gnome-shell: JS ERROR: TypeError: Main.extensionManager is undefined
onTrayIconAdded@/usr/share/gnome-shell/extensions/TopIcons@phocean.net/extension.js:85:1

Related:
phocean@43f991d#diff-06f1274e40de25abda72d812b1cce86a
https://bugzilla.redhat.com/show_bug.cgi?id=1767544
@audreytoskin
Copy link
Contributor

Looks good to me, at least when testing in GNOME 3.32 on Fedora 30 Workstation, and in GNOME 3.34 on a VM of Fedora Rawhide.

@ElijahLynn
Copy link

This seems very similar to the issue in #131, which is one line off:

JS ERROR: TypeError: ExtensionUtils.extensions is undefined onTrayIconAdded@/usr/share/gnome-shell/extensions/TopIcons@phocean.net/extension.js:84:1

@jtojnar
Copy link

jtojnar commented Mar 22, 2020

Why not just use an older version of the extension with old GNOME Shell? This will just make the code messier for no good reason.

@ElijahLynn

This seems very similar to the issue in #131, which is one line off:

It is completely unrelated. The issue you are experiencing was fixed on the master branch by switching from old and removed GNOME Shell API to a newer one introduced in 3.34. That of course broke the extension on GNOME Shell 3.34 and this PR fixes that by making code handle both the old and the new API.

@phocean phocean merged commit d94bcd6 into phocean:master Apr 14, 2020
@phocean
Copy link
Owner

phocean commented Apr 14, 2020

Yes it adds a few lines but I think it's ok and easy to track in the future.
Thanks and sorry for the delay!

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.

None yet

5 participants