Re: [Fwd: Re: A console: method for accessing standard streams]

On 18 Nov 2002, Giovanni Corriga wrote:

> Il lun, 2002-11-18 alle 10:02, Alexander Larsson ha scritto:
> > 
> > Also, the uri-scheme is a bit strange. A uri is supposed to be a 
> > location of an object, not something that differs for each process that  
> > resolves it.
> I don't really follow you here. If two processes get a dynamic HTML page
> by using the http: method, the content of the page may be different for
> each process.

Yeah. Or the file referenced by file: could have changed. But its still in 
theory a reference to a particular file object or web page, even if the 
exact bits in the file may change. Referencing the standard input streams 
is (in my opinion) quite different though. I would much prefer a way to 
e.g. get a GnomeVFSHandle for an open filedescriptor (unnamed handle, no 
"fd:2" uri) instead of having magic names like this. 
> > And what will nautilus do if someone typed console:///stdin 
> > in the location bar? Will it even work?
> > 
> If you type console:///stdin in Nautilus, you will get an error message
> telling you that Nautilus doesn't have a suitable viewer.

So, what is the right behaviour? Should it open the text viewer? When is 
the URI itself ever useful to a programmer or a user? (As opposed to the 
gnome vfs handle. I can see that being useful.)

 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a lonely drug-addicted cowboy living undercover at Ringling Bros. Circus. 
She's a supernatural kleptomaniac college professor descended from a line of 
powerful witches. They fight crime! 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]