-
Notifications
You must be signed in to change notification settings - Fork 14
Cannot add to panel #11
Comments
Sorry - additional details... Version Info
Potential Error?This may or may not be intended to be run like this, but just in case:
Thank you. |
Did you grab the 1.1.1 release? The version of mate-i3-applet you are using is trying to load Gtk 2.0, which suggests it's an older version. That won't work with recent versions of MATE as they've switched to Gtk 3.0. I would expect 1.1.1 to work, as it defaults to Gtk 3.0. If it still doesn't work, can you edit log.py and set (I realize this is a pretty primitive logging/debugging approach. I honestly don't know much about MATE, was hoping by open sourcing this I'd get some support there, but alas MATE applets seem to be super obscure :)) |
I have exactly the same version of Ubuntu, MATE and i3 as @bashfulrobot and it works fine for me. However when I installed 18.10 it failed as described and the error message said that GTK3 is required by the application but GTK2 was already loaded. I gave up quickly because Ubuntu Mate 18.10 is broken anyway (at least minimal installation) and |
Interesting, I've not tried 18.10. I also run Ubuntu 18.04 with MATE 1.20.1 and the applet works without issue. I still wonder if @bashfulrobot grabbed an older version. Thanks for the heads up on 18.10. |
BTW since I use this applet all the time (at home and at work) I wanted to help you with it's development. Visual side of code could use some improvements (PyCharm is all yellow when I open this repository) and I would start with that. Working with beautiful (and pythonic) code is much more pleasant. Logging is implemented strangely so I would also fix that, especially since I want to find the reason why this applet doesn't work on the newest Ubuntu. But before I commit my time I would like to know if you want that kind of help to begin with. |
Yeah, code clean up is appreciated. This is the only Python program I've ever written, so I don't know the language too well. |
According to my folder structure ( I'll try your suggestions when I get back post meeting. Appreciated. |
I added the logging and ran the applet manually, but no file was created. So I just tailed the Thank you for your help. |
This looks to be the issue: I was under the impression from MATE 1.18.0 on, Gtk 2 was no longer in the picture. That doesn't seem to be the case for you. Can you try changing this line back to I'm a bit out of my depth here, there's so little info on MATE applets on the web (especially for recent versions of MATE) that I'm not sure where to begin. |
This applet does not specify the version of MatePanelApplet to load, but mate-i3-applet specifies version 4.0: |
I figured why it didn't work - latest tagged release is from August 12 (1.1.1), however the switch from GTK2 to GTK3 was made on August 17 (a695b04). On the same day, README.md was updated to reflect the change, but the recommended way to install still directs to the outdated release that supports GTK2 by default. I must have downloaded 1.1.1 release when I installed Ubuntu 18.10, however on 18.04 I actually just cloned master branch so it worked. It should be quite easy to detect Mate version and import the correct GTK version based on that. I'm short on time right now but I will try it this weekend. |
🤦♂️ doh, I screwed that one up. Ok, I think that explains everything. Thanks for the sleuthing @landmaj @bashfulrobot I think your issue is the applet is loading Gtk 2.0, then MatePanelApplet wants 3.0, and so it bombs out. Due to me accidentally making 1.1.1 still be based on 2.0, I got confused somewhere along the way. I will do a 1.1.2 release now. @landmaj detecting MATE version then picking 2.0 or 3.0 is not a bad idea. Although it might also still be fine to just support 3.0 going forward as I originally intended. |
ok 2.0.0 is out. @bashfulrobot please try it and let me know how it goes. |
fixed in 2.1.0 |
Hi there,
I was following along with the instructions posted, but for some reason when I press the add button, nothing happens. I cannot add the applet to the panel.
Ideas?
The text was updated successfully, but these errors were encountered: