Closed eldelacajita closed 6 years ago
@wa4557 Do you have any idea why this message is shown on his log?
09:01:34 (warn): QT Warning: "sni-qt/4211" WARN 10:01:34.452 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE
no not really. Not sure this is related to the icon not shown :/
@eldelacajita What's the version of megasync you're using? and from you've got it /download it
@wa4557 https://bugs.dogfood.paddev.net/ubuntu/+source/sni-qt/+bug/1168554 this is related to sni-qt :( and in my case it forces the icons to use non themed icons. Using Archlinux, Insync is not able to start at all (got that from the logs)
Ok, this happens only when you're using Gnome!
@bil-elmoussaoui I have the latest version downloaded from the website.
Version is MEGAsync v2.9.10 (2c928)
Ok, I guess it means that some function call fails and never reaches the method that looks for the custom icons.
@wa4557 it seems that the dbus service used to draw icons is not available somehow on Gnome. I've asked on iirc and still waiting for an answer on how we can fix this; anyway it's a sni-qt issue!
@wa4557 got some good news about this! it seems that the dbus service "org.kde.StatusNotifierWatcher"
was replaced all over the distros in order to follow org.freedesktop. The new dbus service is org.freedesktop.StatusNotiferItem
Compiling when i replace the dbus service name works just fine, no issues but the icons does not work :p
so i am using Mega sync 3.0.1 i have tried "hardcode-- tray" and tried " hardcode tray only" command but it doesn't fix the problem for skype and MEGAsync. i am getting " hardcode-tray --only Mega [sudo] password for zeus: Welcome to the tray icons hardcoder fixer! Your indicator icon size is : 22 Your current icon theme is : GnomeYosemiteIcons-master Svg to png functions are : Enabled Conversion tool : Inkscape Applications will be fixed : mega 1 - Apply 2 - Revert Please choose: 1 Applying now..
No apps to fix! Please report on GitHub if this is not the case"
i am using linux mint 18.1 MATE
@infuerano You need to use hardcode-tray --only megasync
and not hardcode-tray --only Mega
. It's not the same issue at all...
@bil-elmoussaoui sorry for so late reply. i have performed the atep and what i am geting is
hardcode-tray --only megasync Welcome to the tray icons hardcoder fixer! Your indicator icon size is : 22 The detected desktop environement : Mate Your current icon theme is : GnomeYosemiteIcons-master Conversion tool : Inkscape Applications will be fixed : Megasync 1 - Apply 2 - Revert Please choose: 1 Applying now..
No apps to fix! Please report on GitHub if this is not the case
@infuerano The icon theme that are you using doesn't support Hardcode-Tray. Either you report that upstream or you can use an icon theme to fix your Megasync icons by adding --theme Numix
or --theme Papirus
Is there a chance of getting this fixed? I didnt want to create another similar topic, but I am getting the following result after I applied the latest script.
Hardcode-Tray version : v3.8.1 Distribution : Fedora 25 x64 Gtk version : 3.22.3
@akyag i only work on Hardcode-tray on my free time...
I completely understand. Just that the script said these were fixed too and I can see the icons for these apps in the screenshot in this repo. So I am just wondering if all of this is because of the issue mentioned in this thread or is it just on my end.
It's the same issue, sni-qt doesn't work correctly on gnome. And my C/C++ skills are not that good to fix it easily(the same issue for hplip) Hexchat should be fixed, if not it's must be that Papirus doesn't have that icon. And what's that ugly lock icon?
That's keepass.
Agh, i don't know if it's possible to fix it but you can open a new issue for that and i will see what can i do =)
I spent some time trying to figure out how to fix this, i've tried to patch sni-qt in order to get it to work with freedesktop interface but it seems to be broken on ubuntu :(((( Anyway, i will keep this little snippet here that was pretty helpful to test if it works or not without having to open an application and close it all over again
from PySide.QtGui import QApplication, QIcon, QSystemTrayIcon
import sys, signal
app = QApplication(sys.argv)
QIcon.setThemeName('Numix')
icon = QIcon.fromTheme('teamviewer-indicator')
tray = QSystemTrayIcon(icon)
tray.show()
signal.signal(signal.SIGINT, signal.SIG_DFL)
for path in QIcon.themeSearchPaths():
print("%s/%s" % (path, QIcon.themeName()))
sys.exit(app.exec_())
@wa4557 The code might be of a help for you in order to get the icons from the theme directly for sni-qt :+1:
It's not Papirus problem, because all this icons available on theme: https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/blob/master/Papirus/22x22/panel/keepassx-indicator.svg
https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/blob/master/Papirus/22x22/panel/hp-indicator.svg https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/blob/master/Papirus/22x22/panel/hexchat-fileoffer.svg https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/blob/master/Papirus/22x22/panel/hexchat-highlight.svg https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/blob/master/Papirus/22x22/panel/hexchat-indicator.svg https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/blob/master/Papirus/22x22/panel/hexchat-message.svg
@varlesh It's an issue with Gnome & sni-qt
@bil-elmoussaoui Ok :) @akyag Maybe need install and configure Qt5ct on your system? Also for right work need SVG's libraries for Qt-apps - libqt4-svg and libqt5svg5
i'm open binary on ghex. On source code i see this:
QCheckBox::indicator {
width: 24px;
height: 24px;
subcontrol-position: center;
}
QCheckBox::indicator:checked
{
image: url(://images/tray_play_ico.png);
}
QCheckBox::indicator:checked:hover
{
image: url(://images/tray_play_over_ico.png);
}
QCheckBox::indicator:unchecked
{
image: url(://images/tray_pause_ico.png);
}
QCheckBox::indicator:unchecked:hover
{
image: url(://images/tray_pause_over_ico.png
Maybe it's help create patch or another method for change tray icons on Qt5-apps
One of the issues about supporting qt5 apps is that there's no way for us to know if it's a qt5 or a qt4 app...
Mega maybe fix this on upstream.
Until then we should find a solution for other qt apps :+1:
Fixed in the latest release of MegaSync; the icons are not hardcoded anymore
They still seem to be hardcoded for me. Running Megasync 3.5.3.0 on Manjaro XFCE :-/
Have you used hardcode tray?
@bil-elmoussaoui Yes, i ran 'sudo hardcode-tray', but I'd didn't detect megasync, so I tried 'sudo hardcode-tray --only megasync', still without success.
Please send me the log files. They are on /tmp/Hardcode-Tray
@ikurek Megasync not hardcoded anymore! What you doing? XFCE have bugs with some tray-apps icons - it's happened because some OS compiled xfce4-session package without flag --disable-legacy-sm
. See this for more info: https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/issues/549
And this: https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/issues/943
Also install needed libs libqt5svg5
and libqt4-svg
(it's deb-packages names, but i think you found this on manjaro repos)
@bil-elmoussaoui I'm attaching the logs 11-01-2018_10-58-22.log 11-01-2018_10-59-37.log
@varlesh I'll check If Manjaro uses this flag and report soon
@ikurek Hi. If you use qt5ct, you need to disable it when running megasync. And you still need to hardcode icons into hicolor theme. See here my solution.
@hxss Yeah, that worked, so it was an XFCE bug after all. Thank you all for help.
Specifications
v3.6.4
Ubuntu Gnome - 16.04.1 LTS 64-bit
3.18.9-1ubuntu3.1
Inkscape 0.91 r13725
0.2.7+20161212~8~ubuntu16.04.1
any
any
Expected behavior and actual behavior
Megasync tray icon should change after running
hardcode-tray
. It doesn't.Steps to reproduce the problem
hardcode-tray
. It seems to apply the changes to megasync, but the icons remain the same:Chromium [#######.................................] 1/6 16.7%
Google Chrome [#############...........................] 2/6 33.3%
Megasync [########################################] 6/6 100.0%
megasync --debug
I get the attached output.megasync-log.txt