Closed linuxiorr closed 4 years ago
Delayed plugin startup should fix this issue, try this: (rename to extension.js and drop to ~/.local/share/gnome-shell/extensions/trayIconsReloaded@selfmade.pl) extension.js.txt
After I replaced the original extension.js file with the new one, the extension stopped working completely (I've tried it with both the version from the GNOME extensions website, as well as the cloned git version).
The icons don't appear on the top, and the extension is greyed out in the GNOME extensions app (it's listed and I can open the configuration window but it can't be enabled).
I forgot add GLib 😅, just add const GLib = imports.gi.GLib;
on top. File is for extensions.gnome.org release.
I added the line at the top.
It partially fixed the issue.
Now after reboots, the icons don't appear on the right most position. Instead, they appear right before the GNOME grouped drop down menu as pictured on the screenshot (as if the weight had been set to 7). Setting the weight to 4-6 makes it appear as weight 7 after the restart.
On the other hand if I set the weight to 7, after I restart the shell the icons start appearing at the end of the top bar again.
If I set the weight to 3, and restart the shell, after the restart it appears on my preferred position as If I had set it to my desired value of 6.
Try modify timer from 500 to 1000 or even more. (same file, search it by CTRL + F)
If others extension indicator appear after tray icons, that's with probably will not be easy fixable
Any luck with current version in extensions.gnome.org or master?
The behaviour is still the same with the current version from extensions.gnome.org
I've resorted to just setting the weight to 3, as the crucial thing to me, is that after I start my system / restart the shell, the icons are in my preferred position.
This behaviour might prove tricky for some users though, If they don't know that the weight option doesn't work in a fully straightforward way (the position on the top bar after starting / restarting the shell is different than the position that's displayed after setting the weight in the configuration options).
Also, I had tried modifying the timer with a previous version - it didn't fix the issue.
I guess nothing better can be done. Other extensions need more consistent ways to appear on panel or global shell option to shuffle.
I updated the extension today (from the extensions website), it seems that the behaviour is now correct.
I can set the desired position weight, in my case it's position weight 6 to make it appear as pictured in the first screenshot.
When I restart my system, on system startup the position of the icons on the top bar gets set incorrectly (as pictured on the second screenshot, they appear on the right-most position on the panel). To make it appear as desired again, I have to set the position weight to a different value first, and then set it back to the desired value to make it appear correct again.
The same problem also happens when I use ALT+F2 to restart the shell.
![tray-icons-report-2](https://user-images.githubusercontent.com/33715018/79979431-cbadfd80-84a1-11ea-8f71-bf0da96072f2.png)