-
Notifications
You must be signed in to change notification settings - Fork 29
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
Fails to load in Cinnamon 6.4.0 #76
Comments
First I've heard of this issue but happy to help figure it out. Looks like something changed in how to extend from ModalDialog. Can you confirm you are using the latest version of applet.js in this repo or have you made any changes to it? I just want to work from the same code you have. I can see https://github.com/linuxmint/cinnamon/blob/master/js/ui/modalDialog.js has updated ModalDialog to now extend St.Widget and so the error is the _init function needs to be called directly in the newer versions. |
I haven't tested this yet but in applet.js there is 3 dialog windows created. PomodoroSetFinishedDialog In the constructor of each just try replacing e.g class PomodoroSetFinishedDialog extends ModalDialog.ModalDialog {
constructor() {
super._init();
this._subjectLabel = new St.Label();
this.contentLayout.add(this._subjectLabel); Then restart cinnamon and check the logs again. |
Also give this branch a try: master...fix-modal-dialog I will have more time to test next week and get the newer cinnamon versions installed but let me know how you go. |
Thank you for your quick replies. I tried your branch, just copied the But it still doesn't work, here is the new log:
|
Ok we're definitely on the right track with the fix. I just made a new commit I'd like you to try, it's in the same branch: bc8f286 The applet was using class inheritance to extend Cinnamon's ModalDialog class. This approach broke in newer versions of Cinnamon which require proper GObject class registration. I switched from using class inheritance to factory functions for creating dialog windows. This change should make the applet work with both old and new versions of Cinnamon. I have tested this on Cinnamon 6.0.4. I will get to testing it on 6.4.0 but please give it a try first. |
I got a new error:
|
Leave it with me, signal handling has also changed. Existing ModalDialog has |
Hello! Thanks for creating this wonderful applet.
I'm on Arch Linux, and after a recent update of Cinnamon, the applet doesn't work anymore. Here is the log that I get:
The applet doesn't show up on the taskbar, but I'm able to open its settings in Cinnamon Settings -> Applets, and finding the applet there.
Is there a fix for this? Thank you.
The text was updated successfully, but these errors were encountered: