As Electron based apps have trouble using the "systray"/tray icons in Gnome, closing (pressing X) on such applications lead effectively to them being hidden, as they also disappear from the application bar (? not sure about that term).

That means opening the app again would open a second (or third or ...) instance, which could cause errors to start appearing.

These apps show when doing ps -ef | grep my-app, but is there any way of getting Gnome to render the window of an app that has been "closed"/hidden from view by sending it some signal?

P.S. I know one can use xdotool or wmctrl to send X signals (see this link), but sending them to a window that has been removed by itself only results in error messages (since the window no longer exists).

  • Have you tried installing TopIcons Plus extension? That might help showing the tray icon. – pomsky Mar 13 '18 at 8:38
  • @pomsky That's an answer for a different question :-) I already have a "fix" for that, which is to prepend XDG_CURRENT_DESKTOP=Unity to the command that is being invoked. That hack works fine (most of the time). – oligofren Mar 14 '18 at 22:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.