[Portland] Patch to xdg-su

Jim Gettys jg at laptop.org
Fri Mar 31 16:48:51 EEST 2006


On Fri, 2006-03-31 at 07:30 -0600, Jeremy White wrote:
> > I think the scripts should take full care of command line parsing and
> > the return values. So it shouldn't pass command line options to the
> > native method (e.g. kdesu or gnomesu in this case) if those command line
> > options aren't documented as such in the documentation of the xdg-*
> > script. Like wise, the script should generate its own return values and
> > define what all return values mean.
> 
> Yes, I agree strongly.
> 
> > 
> > Btw, Without xsu it should be possible to do something like
> > 	xterm -geom 60x5 -e su -c $*
> 
> Yah.  I went and looked at our implementation of su,
> and we actually probe for a terminal emulator
> (believe it or not, xterm is not shipped on all distros!)

Boy, we've reached a milestone: xterm started life (as a stand alone
terminal emulator for the VS100), in the summer of 1984.

The beginning of the end, though the final end may take another 22 years
or so.

There is an interesting question of whether xterm should be defined to
be pointing to xterm, if installed, or to the system default terminal
emulator, if not; many scripts depend on that name....  But I suspect
the alternatives don't honor the old style command line arguments, so
maybe the answer is things break....
                         - Jim

> We also use sudo in preference to su, if it's in the path.
> 
> Cheers,
> 
> Jeremy
> _______________________________________________
> Portland mailing list
> Portland at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/portland
-- 
Jim Gettys
One Laptop Per Child





More information about the Portland mailing list