-
Notifications
You must be signed in to change notification settings - Fork 9
Conversation
Just checked quickly what you modified, looks good for me except it will also modify the icon on windows. So I will have to modify some of your modifications to not break that compatibility (or maybe it works too with ico on windows, will need some testing). https://github.com/Sytten/Facebook-Messenger-Desktop/tree/HotFix-Icon |
http://www.mediafire.com/download/um7eslf5e4t8zbo/Messenger_linux32_Test.deb EDIT: I forgot to update the version number, so you will have to uninstall your current version first... |
My system is 64-bit, so please compile the linux64 build. |
In Plasma 5 the icon does not appear at all and on the console it's written:
I think a different icon should be loaded based on whether Plasma 5 is running. By reading here, I discovered that it is possible to detect Plasma 5 by means of the following environment variables: In my KDE 4 system:
In my Plasma 5 system:
The detection should be performed as follows:
What do you think? In the meanwhile, it would be great if you provided me with a .deb containing just the 24x24 icon (in .png), just to see if loading a 24x24 icon solves the issue or the icon is still cropped. Otherwise, if you want, I could try again to compile by myself the application, but I need your help because yesterday I had several problems (I've never used NodeJS or gulp). [1] just checking whether the variable is equal to "true" is wrong, as stated in the KDE documentation:
|
Well, for me thats a bug in the NWJS framework. This work-around is quite messy but could be done. I currently don`t have the time to implement it, so I suggest you try to do it and make a pull request ;) I don`t really have experience with node, I learn what I need as I go.
After, you move in the src folder and you can test the app by doing: nw . (the final dot is important) If you want to package the app, thats a bit more complicated.
That allows you to do, in the directory of the project (not the src directory), that: Hope it helps |
I tried to implement it, but I haven't tested it. Now I'm trying to follow you instructions. |
It works like a charm in Plasma 5!!! Now I'm going to test it in my other computer with KDE 4. I agree that this is a bug in the NW.js framework. If you are interested for documentation purposes, I had to type the following commands in my system:
|
OK, it's working in KDE 4 (it loads the old icon), so the pull request is ready! |
Ok perfect, I will merge it in the next release. I need to update nwjs to the new version when it will be stable, so your modification might become useless in a few weeks... |
Quick question, have you tried the libappindicator3-1 package? |
I have both libappindicator1 and libappindicator3-1 packages installed, and if I remove libappindicator1 the icon disappears. In my opinion you should make a new release now, then if the (possible) bug in NW.js will be fixed the workaround can be quickly reverted. |
(sorry, I accidentally pressed Close and comment) |
I don`t really want to do a release only this specific bug, so I will wait until I have more stuff to push. But please refer to #12 |
8e2a443
to
b27e69a
Compare
I updated my pull request removing merge conflicts. Is it time to merge it? |
I'm working on it right now ;) |
I think there is no need, my patch is working and that's what matters. Who suggested you the alternative fix? |
It works, but I don't really like the idea of adding code for a desktop environment. |
@cassiodoroVicinetti can you test the fix he proposed? |
EDIT: No, it's NOT working, see below. It's working. You could detect Plasma 5 in the after-install.sh script and edit the .desktop file... |
Thats odd... I will check it out after I finished what I'm doing ( I correct the escape key bug) |
The icon intermittently shows as an empty page: for a few seconds it is normal, then suddenly it turns into an empty page, then after a while it turns back to normal, and so on. The behaviour looks unpredictable, but I think it happens more often just after a change of the icon (I mean: when a message arrives, and when you read a message). I think it is the same behaviour reported in https://github.com/Aluxian/Facebook-Messenger-Desktop/issues/296#issuecomment-170405173 |
Hum... I will have to investigate that too. If you try to set the desktop env to something else like gnome, does it work? |
I think I will go with this fix, because it will also fix the bug on the unity desktop env. |
I disagree. My fix gives both a working tray icon and a native context menu. Unity should be addressed in a different way. |
Maybe but adding specific code for a desktop env only for some user of linux in the general app is messy and I wont do it. |
And if the user has two desktop environments installed both in the same system? |
Lets go discuss it on gitter, I fixed the esc problem so now its time to fix that problem ;) |
@cassiodoroVicinetti I just installed the latest version of openSUSE and the system tray works perfectly out of the box with plasma 5. No problem of icon size... You might want to update to check it. |
Which version of Plasma are you using?
|
From what I see its the KDE version 5.16.0 |
In order to check the Plasma version, launch:
Anyway, I found that Plasma 5.5 restored the legacy tray icons: https://www.kde.org/announcements/plasma-5.4.95.php |
I think it is, I use version 5.5.4 and no problem with the icon. |
Mmm so I guess you won't fix this... |
No I wont fix it, anyway I already release the new version and I dont have time to work on it... |
The icon issue is still there. If I remove the @Sytten Maybe your test on openSUSE succeeded because of this. |
@cassiodoroVicinetti Maybe I dont remember :/ If not then I suggest you open a new issue on the official repo |
Two considerations:
|
The 1.5 version appears to fix the second point (CPU usage). |
Nice to hear, so where are we now exactly? |
Basically if you are using Plasma 5:
|
Good I will add that to tke wiki page :) |
As I already wrote in https://github.com/Aluxian/Facebook-Messenger-Desktop/issues/296#issuecomment-168070347, in Plasma 5, after installing the
![messengerfordesktop](https://cloud.githubusercontent.com/assets/1621526/12057079/b1083fc4-af3d-11e5-9929-d27a97737f06.png)
libappindicator1
package (Debian/Ubuntu), the tray icon is not shown correctly: in particular, the 64x64 icon is cropped in the middle to a 24x24 square before being shown:The crop doesn't change if the application bar height is changed.
The icon is currently a .png file, but .ico files should also work (nwjs/nw.js#88 (comment)), so I created a .ico file containing a 64x64 icon and a 24x24 icon.
Sadly I was not able to compile the application to test it, so I kindly ask @Sytten to compile it for me and provide me with the .deb so that I can test it.