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

failed to load in gnome 46.1 (fedora 40) #76

Open
pieska opened this issue May 2, 2024 · 5 comments
Open

failed to load in gnome 46.1 (fedora 40) #76

pieska opened this issue May 2, 2024 · 5 comments

Comments

@pieska
Copy link

pieska commented May 2, 2024

sadly, it fails to load, again:

gnome-shell[6320]: Extension [email protected]: TypeError: this._box.add is not a function
                                                           
                                                           Stack trace:
                                                             ConnectionManager@file:///home/pharaoh/.local/share/gnome-shell/extensions/[email protected]/extension.js:79:19
                                                             enable@file:///home/pharaoh/.local/share/gnome-shell/extensions/[email protected]/extension.js:333:19
                                                             _callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:266:38
                                                             loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:478:32
                                                             async*_loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:786:24
                                                             async*_enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:792:48
                                                             _sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:827:20
                                                             async*init@resource:///org/gnome/shell/ui/extensionSystem.js:76:14
                                                             _initializeUI@resource:///org/gnome/shell/ui/main.js:303:22
                                                             start@resource:///org/gnome/shell/ui/main.js:175:11
                                                             @resource:///org/gnome/shell/ui/init.js:12:47
                                                             @resource:///org/gnome/shell/ui/init.js:21:20

Does anyone knows how to fix it?

@pieska
Copy link
Author

pieska commented May 3, 2024

quick and dirty fix in extension.js:

        this._bin = new St.Bin({child: this._icon});

//        this._box.add(this._bin);
        this._box.actor.add_child(this._bin);
//        this.add_actor(this._box);
        this.actor.add_child(this._box);
        this.add_style_class_name('panel-status-button');

the extension needs probably a rewrite following the gnome shell extension reference guide

@sbadger
Copy link

sbadger commented May 24, 2024

quick and dirty fix in extension.js:

        this._bin = new St.Bin({child: this._icon});

//        this._box.add(this._bin);
        this._box.actor.add_child(this._bin);
//        this.add_actor(this._box);
        this.actor.add_child(this._box);
        this.add_style_class_name('panel-status-button');

the extension needs probably a rewrite following the gnome shell extension reference guide

I'm using the fork for Gnome 45 from @xkahn and this modification worked for me!!!
Thanks @pieska

@pieska
Copy link
Author

pieska commented May 24, 2024

I created a branch for gnome-46: https://github.com/pieska/connectionmanager2/tree/gnome-46

@xkahn
Copy link

xkahn commented May 24, 2024

Ah! Great! I hadn't had time to look at the problem yet. thank you @pieska.

@sbadger
Copy link

sbadger commented May 30, 2024

Also as I just tested the change on gnome 45 (fedora 39) and it worked as well.

xkahn pushed a commit to xkahn/connectionmanager2 that referenced this issue Jun 10, 2024
* Patch by pieska from sciancio#76
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

3 participants