Skip to content

Desklet reload failes with "Type name Gjs_{myclassname}" is already registered. #181

Closed Answered by mtwebster
jtoberling asked this question in Development
Discussion options

You must be logged in to vote

You can't unload/reload GObject types (this isn't to do with gjs, but a behavior of GObject). You'll have to use delegation.

like...

const YarrLinkButton = class {
    constructor() {
        this.uri = null;
        this.actor = new St.Button();
    }
    ...
});

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jtoberling
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants