This isn't going to be easy in a .net/mono portable way, this is very specific to the windowing system used.
For x11 ( linux ) you can get a list of all the windows on the current display by running "xwininfo -root -children" and parsing the output. You might have some luck using wnck-sharp too but I've not been able to find any documentation to point you at ( but it is part of gnome-desktop-sharp in github ) Not sure that will easily get you to a process ID if you need to.# Ian On Thu, Dec 01, 2011 at 04:46:13PM +0000, Leonel Florin Selles wrote: > Hi, I will like to get a list of the process that have a user interface > running on Gnome or Kde. > > I use the System.Diagnostic.Process.GetProcess() method but with this I > can not know that, so I try with UnixProcess and that one one have two > methods, do you know an other way. > > > ____________________________________________ > Algunos suelen hayar su destino en el sendero que toman para evitarlo. > ____________________________________________ > Tu mente es como el agua, cuando esta agitada se vuelve dificir ver, pero > si dejas que se calme, la respuesta se vuelve clara. > ____________________________________________ > El ayer es historia, el mañana es un misterio, pero el hoy es un obcequio, > por eso se llama presente. > > > ____________________________________________ > Algunos suelen hayar su destino en el sendero que toman para evitarlo. > ____________________________________________ > Tu mente es como el agua, cuando esta agitada se vuelve dificir ver, pero > si dejas que se calme, la respuesta se vuelve clara. > ____________________________________________ > El ayer es historia, el mañana es un misterio, pero el hoy es un obcequio, > por eso se llama presente. > > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > > > ____________________________________________ > Algunos suelen hayar su destino en el sendero que toman para evitarlo. > ____________________________________________ > Tu mente es como el agua, cuando esta agitada se vuelve dificir ver, pero > si dejas que se calme, la respuesta se vuelve clara. > ____________________________________________ > El ayer es historia, el mañana es un misterio, pero el hoy es un obcequio, > por eso se llama presente. > > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
