From nochoice at xs4all.nl Mon Mar 13 06:54:27 2006 From: nochoice at xs4all.nl (Jonathan Maasland) Date: Mon, 13 Mar 2006 11:54:27 +0000 Subject: [FR-devel] Need some help with Win98/WinMe bug Message-ID: <44155D73.501@xs4all.nl> Hi all, I'd like to ask for some help here on the list because, as you might know, I don't have access to a Windows machine here and I'd like to fix a recently opened bug concerning Win98/WinMe. The BIG question, sortof, is if someone can verify which of the ENV variables are set: USERPROFILE and/or 'HOME'? --- puts ENV['USERPROFILE'] puts ENV['HOME'] --- Thanks very much for helping me. Jonathan M From laurent at moldus.org Mon Mar 13 08:21:05 2006 From: laurent at moldus.org (Laurent Julliard) Date: Mon, 13 Mar 2006 14:21:05 +0100 Subject: [FR-devel] Need some help with Win98/WinMe bug In-Reply-To: <44155D73.501@xs4all.nl> References: <44155D73.501@xs4all.nl> Message-ID: <441571C1.5090802@moldus.org> Jonathan Maasland wrote: > Hi all, > > I'd like to ask for some help here on the list because, as you might > know, I don't have access to a Windows machine here and I'd like to fix > a recently opened bug concerning Win98/WinMe. > > The BIG question, sortof, is if someone can verify which of the ENV > variables are set: USERPROFILE and/or 'HOME'? > > --- > puts ENV['USERPROFILE'] > puts ENV['HOME'] > --- > > Thanks very much for helping me. > > Jonathan M On my old Win98 box where I have the same problem as the one reported in the FR bug tracker, none of the variables are set. Note: I don't have any user account setup on my Win98 machine. Laurent From nochoice at xs4all.nl Mon Mar 13 11:56:23 2006 From: nochoice at xs4all.nl (Jonathan Maasland) Date: Mon, 13 Mar 2006 16:56:23 +0000 Subject: [FR-devel] Need some help with Win98/WinMe bug In-Reply-To: <441571C1.5090802@moldus.org> References: <44155D73.501@xs4all.nl> <441571C1.5090802@moldus.org> Message-ID: <4415A437.3080906@xs4all.nl> Thanks for taking a look at this Laurent. Having none of those ENV-vars set is the cause for bug #3815 FreeRIDE crashes out of the box on Win ME If you look at readers.rb (freebase/lib/freebase/readers.rb) starting line 32: ---- def self.setup $FREEBASE_APPLICATION = "freeride" unless $FREEBASE_APPLICATION if RUBY_PLATFORM =~ /(mswin32|mingw32)/ @@userdir = File.join(ENV['USERPROFILE'], $FREEBASE_APPLICATION) unless ENV['USERPROFILE'].nil? else @@userdir = File.join(ENV['HOME'],".#{$FREEBASE_APPLICATION}") unless ENV['HOME'].nil? end end ---- Because the env-vars aren't set @@userdir is never initialized. What would be a sensible default here? (A .freeride directory in the C: root?) Jonathan Laurent Julliard wrote: >Jonathan Maasland wrote: > > >>Hi all, >> >>I'd like to ask for some help here on the list because, as you might >>know, I don't have access to a Windows machine here and I'd like to fix >>a recently opened bug concerning Win98/WinMe. >> >>The BIG question, sortof, is if someone can verify which of the ENV >>variables are set: USERPROFILE and/or 'HOME'? >> >>--- >>puts ENV['USERPROFILE'] >>puts ENV['HOME'] >>--- >> >>Thanks very much for helping me. >> >>Jonathan M >> >> > >On my old Win98 box where I have the same problem as the one reported >in the FR bug tracker, none of the variables are set. Note: I don't >have any user account setup on my Win98 machine. > >Laurent > >_______________________________________________ >Freeride-devel mailing list >Freeride-devel at rubyforge.org >http://rubyforge.org/mailman/listinfo/freeride-devel > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/freeride-devel/attachments/20060313/866d5b31/attachment.htm From curt.hibbs at gmail.com Mon Mar 13 09:52:51 2006 From: curt.hibbs at gmail.com (Curt Hibbs) Date: Mon, 13 Mar 2006 08:52:51 -0600 Subject: [FR-devel] Need some help with Win98/WinMe bug In-Reply-To: <4415A437.3080906@xs4all.nl> References: <44155D73.501@xs4all.nl> <441571C1.5090802@moldus.org> <4415A437.3080906@xs4all.nl> Message-ID: <31d15f490603130652l26a9c966y9f47a0b974823bf9@mail.gmail.com> I think that c:\freeride would be a reasonable default. Curt On 3/13/06, Jonathan Maasland wrote: > > Thanks for taking a look at this Laurent. > Having none of those ENV-vars set is the cause for bug #3815 FreeRIDE > crashes out of the box on Win ME > > If you look at readers.rb (freebase/lib/freebase/readers.rb) starting line > 32: > ---- > def self.setup > $FREEBASE_APPLICATION = "freeride" unless $FREEBASE_APPLICATION > if RUBY_PLATFORM =~ /(mswin32|mingw32)/ > @@userdir = File.join(ENV['USERPROFILE'], $FREEBASE_APPLICATION) > unless ENV['USERPROFILE'].nil? > else > @@userdir = File.join(ENV['HOME'],".#{$FREEBASE_APPLICATION}") unless > ENV['HOME'].nil? > end > end > ---- > > Because the env-vars aren't set @@userdir is never initialized. > What would be a sensible default here? (A .freeride directory in the C: > root?) > > Jonathan > > > Laurent Julliard wrote: > > Jonathan Maasland wrote: > > Hi all, > > I'd like to ask for some help here on the list because, as you might > know, I don't have access to a Windows machine here and I'd like to fix > a recently opened bug concerning Win98/WinMe. > > The BIG question, sortof, is if someone can verify which of the ENV > variables are set: USERPROFILE and/or 'HOME'? > > --- > puts ENV['USERPROFILE'] > puts ENV['HOME'] > --- > > Thanks very much for helping me. > > Jonathan M > > On my old Win98 box where I have the same problem as the one reported > in the FR bug tracker, none of the variables are set. Note: I don't > have any user account setup on my Win98 machine. > > Laurent > > _______________________________________________ > Freeride-devel mailing list > Freeride-devel at rubyforge.orghttp://rubyforge.org/mailman/listinfo/freeride-devel > > > > > _______________________________________________ > Freeride-devel mailing list > Freeride-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/freeride-devel > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/freeride-devel/attachments/20060313/831e47be/attachment.htm From laurent at moldus.org Mon Mar 13 11:09:33 2006 From: laurent at moldus.org (Laurent Julliard) Date: Mon, 13 Mar 2006 17:09:33 +0100 Subject: [FR-devel] Need some help with Win98/WinMe bug In-Reply-To: <31d15f490603130652l26a9c966y9f47a0b974823bf9@mail.gmail.com> References: <44155D73.501@xs4all.nl> <441571C1.5090802@moldus.org> <4415A437.3080906@xs4all.nl> <31d15f490603130652l26a9c966y9f47a0b974823bf9@mail.gmail.com> Message-ID: <4415993D.2060100@moldus.org> Curt Hibbs wrote: > I think that c:\freeride would be a reasonable default. > > Curt > Could be... except that if you install a new version of FreeRide you'll very likely loose the .freeride directory and all your settings... This being said I don't see where to store this file other than c:\freeride or rather than hardcoding one should probably set the ENV variable with the directory where FreeRIDE is installed so that who install elsewhere are also fine. Laurent From dave at burt.id.au Fri Mar 17 20:43:13 2006 From: dave at burt.id.au (Dave Burt) Date: Sat, 18 Mar 2006 12:43:13 +1100 Subject: [FR-devel] Need some help with Win98/WinMe bug References: <44155D73.501@xs4all.nl> <441571C1.5090802@moldus.org><4415A437.3080906@xs4all.nl> <31d15f490603130652l26a9c966y9f47a0b974823bf9@mail.gmail.com> Message-ID: <01ba01c64a2d$5277bb40$6602a8c0@telperion> Curt said: > I think that c:\freeride would be a reasonable default. Don't use the root. Use C:\Program Files\freeride or C:\My Documents\.freeride. Really, "C:\My Documents" is as close to ENV["HOME"] as you get on Windows 98/ME. Cheers, Dave