[EMAIL PROTECTED] (Garrick Staples) writes:

> On Fri, Mar 01, 2002 at 01:38:33PM +0000, dams alleged:
> > [EMAIL PROTECTED] (Guillaume Cottenceau) writes:
> > 
> > > garrick <[EMAIL PROTECTED]> writes:
> > > 
> > > > > > Clicking on "Console" in mcc results in this error:
> > > > > >     sh: -c: line 1: syntax error near unexpected token `ARRAY(0x84eb9a8)'
> > > > > >     sh: -c: line 1: `ARRAY(0x84eb9a8) &'
> > > > > > Someone didn't dereference an array correctly :)
> > > > > 
> > > > > Line 583 of drakconf.real:
> > > > >   system(($alternate ? $alternate : $exec) . " &");
> > > > > 
> > > > > $alternative is actually an array ref, this fixes this problem:
> > > > >   system(($alternate ? $alternate->[0] : $exec) . " &");
> > > > 
> > > > My bad, the correct line is:
> > > >    system(($alternate->[0] ? $alternate->[0] : $exec) . " &");
> > > 
> > > Well better:
> > > 
> > > system(($alternate->[0] || $exec) . " &");
> > > 
> > > Dams?
> > 
> > well, $alternete is a simple string in the case of gtk tool, and an array ref
> > in the case of external application. I have not tested it in the case of non
> > embedded mode. Thanks for the bug. So the pb is not a dereferencing, I'm not
> > that bad at perl :)
> 
> I just started looking at this code for my first time.  It looks fun to
> play with; and I have to say, this embedded/non-embedded thing is pretty
> slick :)  Maybe I'll finally learn this gtk stuff.

yes, it's a good piece of code, with some interesting things. Embedding
external application like rxvt is still ugly, but we didn't find anything
cleaner.

btw, look at /usr/share/mcc/* If you guys want to do some themes, you're
welcome :)

-- 
dam's

Reply via email to