Re: Desktop integration



On Mon, May 12, 2003 at 07:30:58PM -0400, John (J5) Palmieri wrote:
> On Mon, 2003-05-12 at 19:19, Linas Vepstas wrote:
> > On Mon, May 12, 2003 at 07:05:02PM -0400, Havoc Pennington was heard to remark:
> > > Hi,
> > > 
> > > This is probably best done under the heading of "MIME system" (what's
> > > now the "preferred applications" dialog in GNOME should be folded in
> > > there too). Some slow progress here on xdg-list etc.
> > 
> > Well, I'll cross-post to there, but ... unless you correct me, this is
> > not just the mime-types issue.  In the editor example, I want my app
> > to get the results *back* from the 'prefered editor'.  Its not enough 
> > to know the prefered app; one needs some actual interfaces into it as
> > well.
> > 
> > --linas
> 
> You might want to see how Anjuta 2 handles this.  I think they use CORBA
> to communicate with either Vi or Gedit.  I used the feature once where
> you can select an editor to edit the source code in and after saving it
> would reload in the main editor window.

Mutt does something similar, though not with fancy corba or anything.
I haven't actually looked the code or anything, but it looks like it
does something like:

$filename = create_random_filename();
system("$favorite_editor $filename");
load_file_data($filename);

In this case, the file is "/tmp/mutt-<computername>-31294-348".  

This of course doesn't deal with the problem of changing code within the
editor, or what if the editor doesn't take a filename as it's argument,
but that's how mutt does it.

alan

-- 
Alan <alan ufies org> - http://arcterex.net
-------------------------------------------------------------------
"We are either doing something, or we are not. 'Talking about' is a 
subset of 'not'."            -- Mike Sphar in alt.sysadmin.recovery



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