martinpl / tray-icons-reloaded

GNOME Shell extension which bring back Tray Icons to top panel, with additional features.
GNU General Public License v3.0
492 stars 29 forks source link

The location of the icons on the top bar [affected by the position weight] get's set incorrectly between GNOME shell startups #7

Closed linuxiorr closed 4 years ago

linuxiorr commented 4 years ago

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 tray-icons-report-2

martinpl commented 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

linuxiorr commented 4 years ago

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).

martinpl commented 4 years ago

I forgot add GLib 😅, just add const GLib = imports.gi.GLib; on top. File is for extensions.gnome.org release.

linuxiorr commented 4 years ago

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.

tray-afrer-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.

tray-after-restart-vol

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.

tray-vol-3

martinpl commented 4 years ago

Try modify timer from 500 to 1000 or even more. (same file, search it by CTRL + F)

martinpl commented 4 years ago

If others extension indicator appear after tray icons, that's with probably will not be easy fixable

martinpl commented 4 years ago

Any luck with current version in extensions.gnome.org or master?

linuxiorr commented 4 years ago

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.

martinpl commented 4 years ago

I guess nothing better can be done. Other extensions need more consistent ways to appear on panel or global shell option to shuffle.

linuxiorr commented 4 years ago

I updated the extension today (from the extensions website), it seems that the behaviour is now correct.