gnome-shell-extension-suspend-button
gnome-shell-extension-suspend-button copied to clipboard
No icon displayed
Hi
I'm in a fresh Fedora 27 installation (Gnome 3.26) and, although the extension works fine, it only adds an empty space (which is clickable and it works!) to the menu.
Any ideas on where to start looking for errors?
Cheers,
It's because of the last update. Find the following line on extension.js:
this._altsuspendAction = this.systemMenu._createActionButton('system-suspend-symbolic', _("Suspend"));
and replace it with:
this._altsuspendAction = this.systemMenu._createActionButton('media-playback-pause-symbolic', _("Suspend"));
This is happening because not all icon packs provide 'system-suspend-symbolic'
Thanks a lot, worked like a charm.
Really nice extension, it's a must (and I use very few extensions!).
Cheers,
Perhaps it would be best if the icon were configurable.
Or even better, automatically figure out which icon can be used. Too lazy to dig more in the gjs docs. Dev, can you please :)
I think having system-suspend as default and the old one as fallback is a good solution. I will look into that.
I changed it back to the old icon for now.
About the system suspend as default: the new icon could be present but could have nothing to do with the style in the set that the shell theme is using (maybe due to icon-fallback?). In my case, while the old icon was totally consistent with the other icon used in the other buttons, the new one is not. That should be taken into consideration as well.
@jackpot51
Perhaps it would be best if the icon were configurable.
I don't think this is useful.
@genodeftest I don't mind it going back to the pause button if that fixes problems - I am using a fork with my preferred icon anyways