Actually, finding out where Windows is installed is easy.  Win95/98
always puts WinDir=(windows drive and path) in MSDOS.SYS.  So you just
have to parse MSDOS.SYS to see where they installed Windows.  And I'm
not as sure about this, but I believe MSDOS.SYS is always written to the
first FAT/FAT32 partition.
So I don't know how DrakFont goes about getting it's information, but I
do not that it doesn't do it at install.  It's definitely been manually
run by me, as I would imagine a Codec finding program would be.

Geoffrey Lee wrote:
> 
> Yo.
> 
> On Sun, Oct 15, 2000 at 06:24:09PM +0200, Alexander Skwar wrote:
> > On Sun, Oct 15, 2000 at 10:48:14PM +0800, Geoffrey Lee wrote:
> > > And it's hard to tell whether a user has the codecs installed for a given
> > > machine, then we would need to mount his win partition and then manually copy
> > > it which is very troublesome, why not just give the URL so that he can downlaod
> >
> > But aren't you already doing that with drakfont?
> 
> Well yes, you snag the Windows font so that you can use it on your shiny new
> GNU/Linux box. But I consider Drakfont a system utility, doing that just for
> one DivX related individual package would be quite troublesome ... it would
> mean:
> 
> I have to find your Windows partition, your windows directory, and your
> codec directory which is not really possible with %post if you want to make
> it automated for all cases. Even if you provide something for me in the %post
> script (which is supposed to be automated!!) then I would have to copy the
> codecs into /usr/lib/win32 manually or mount whatever is necessary somewhere and
> then do something so that the codecs can be found in /usr/lib/win32. I'm not
> saying that I don't want to make it work out of the box, but it is kind of
> troublesome, if we provide some kind of shell script so that the user can
> run it and then setup (remember wget?) the codecs, then that would be fine.
> 
> This is due to the number of cases:
> 
> (1) Not everyone has supermount.
> (2) Not everyone mounts his partition in /mnt/windows.
> (3) Not everyone has the same Windows install directory.
> 
> Therefore, if you take care of this in %post, it would make it a very buggy
> %post script. You make any change to the above situations, it breaks the
> scripts which is definitely not a very desirable thing.
> 
> Yet, I have other things to take care of now, maybe I can only package some
> kind of Div X player and leave the script for later ... :(
> 
> Besides, it can be easily fixed by downloading some codecs ( < 1 MB) and
> putting it into /usr/lib/win32. It's not worth the trouble to go the Drakfont
> way IMHO.
> 
> These are of course windows DLLs, and you need wine; so either using the
> one from your Windows partition, or downloading the codecs in zip format and
> placing them into /usr/lib/win32 wouldn't make you any more or any less
> of a sinner. :)
> 
> Of course you are also welcome to package this and send it over. (I've seen
>  a lot of nice RPMS for you. :) ) Just remember that we cannot distribute
>  the codecs in the RPM.
> 
> 
> BTW: What do I need
> > drakfont for?  I never quite understood the purpose of this utility (no,
> > that's not a flame).
> >
> 
> Drakfont ..? I am not sure ... I don't use it either...I have NT partition
> which I never boot to on this machine. Kind of wasting space here. I have all
> the fonts that I want by default, so to hell^H^H^H^H with the windoze fontz.
> 
> --
> Geoffrey Lee <[EMAIL PROTECTED]>
> ������
> 
> ~/.signature ����big5 compliant.
> 
> http://devel.mandrakesoft.com/~snailtalk
> ftp://devel.mandrakesoft.com/pub/people/snailtalk
> 
> "7 days of honeymoon makes one whole week."

Reply via email to