Question

I'm coding a demon like program from Gambas on Ubuntu 13.10.
This is a GUI application which becomes visible when the user hits specific key.
Therefore, I don't want this program to appear on the task bar.

enter image description here

Is there a way I can bypass it? (Maybe from a Bash trick or a Gambas code?)
Thanks! :)

Était-ce utile?

La solution

You need to add _NET_WM_STATE_SKIP_TASKBAR atom to _NET_WM_STATE - see 'Application window properties' part of emwh spec.

Autres conseils

I don't know at all gambas, but what you want is the following for gtk (in python):

 window.set_property("skip-taskbar-hint", True)

or for QT:

setWindowFlags(QtCore.Qt.SplashScreen)

basically, you need to find a way to change the properties or flags for the windows you want to display. Look at the API of the windows in gambas

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top