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

Re: update-alternatives -- changing preferences



On Tue, Aug 08, 2000 at 11:06:57AM -0500, Dave Sherohman wrote:
> kmself@ix.netcom.com said:
> > The above will add "emacs" into the list of available alternatives
> > for "editor".  By what divers black majik a particular application
> > is chosen I'm not sure.
> 
> Despite the claim at the top of --display's output, "auto" appears to
> be an action rather than a state.  When you execute
> `update-alternatives --auto <name>`, the highest priority option is
> assigned to the link (in the case of a tie, the first item listed with
> the highest priority is chosen, IIRC).
> 
> However, this automatic selection can be overridden with
> `update-alternatives --config <name>` to force a specific option - yet
> it continues to claim "status is auto."
> 
> > ...what is the "correct" way to have "wmaker" be "Current 'best'
> > version"?
> 
> The easy way would be
> 
> update-alternatives --config x-window-manager
> 
> and select wmaker from the list to be your default.

For those who are interested, the following script (run in
/etc/alternatives) will list all manually configured alternative links:


#!/bin/bash
cd /etc/alternatives
for file in *; 
do 
	if update-alternatives --display $file | grep manual 1>/dev/null
		then update-alternatives --display $file; echo
	fi
done 
<EOF>

-- 
Karsten M. Self <kmself@ix.netcom.com>     http://www.netcom.com/~kmself
 Evangelist, Opensales, Inc.                    http://www.opensales.org
  What part of "Gestalt" don't you understand?   Debian GNU/Linux rocks!
   http://gestalt-system.sourceforge.net/    K5: http://www.kuro5hin.org
GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0

Attachment: pgpwR90oz7Vfj.pgp
Description: PGP signature


Reply to: