Re: [Fresco-devel] scripting

Stefan Seefeld <[email protected]>
Newsgroups gmane.comp.video.fresco.devel
Message-ID <[email protected]>
Sean Rae wrote:
> Has there been any thought of a scripting interface?  I was reading this
> page:
> http://developer.kde.org/documentation/tutorials/automation/index.html
> when it occured to me that it might be cool to have a shell-ish thing
> where you can get a list of open windows and maybe give them commands
> (e.g. mozilla::openNewWindow[http://www.fresco.org, Desktop1]) through the
> shell or a shell script.  
> (see http://developer.kde.org/documentation/other/kfmclient.html)
> 
> This interface might help to find out what clients are active, which are
> in memory and hung, or whatnot.  We could even telnet in and kill a window
> that has captured and locked the screen.  I'm thinking it could become a
> part of Moscow.  I guess this is in the same vein as AppleScript.

I'm trying to imagine what you have in mind when talking about 
scripting. Of course, there are python bindings for Fresco, allowing you
to write Fresco programs in python (and of course, all other languages 
that have CORBA bindings).

However, this may not be exactly what you are looking for, i.e. write 
single clients that ask the server for a suitable UI.
You seem to want something to introspect and manipulate the server's 
current state. That's an interesting (and not so easy) thing, as
there are quite a number of delicate issues to deal with, such as 
security concerns. What should a client be able to see ? How can it
authenticate and how should the server classify credentials to be able
to decide what data to expose ?
The basic architectural framework is already there, i.e. you create a 
ClientContext and let it negotiate with the server to receive a 
ServerContext, which you then use to talk to the server. It's this
ServerContext's job to allow or refuse any further communication, such
as kit creation.
May be it would be interesting to think further in that direction...

> BTW, is there a wiki page for the topic of porting qt/gtk to warsaw that I
> haven't seen?

not that I'm aware of.


Regards,
		Stefan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.