From: brett l. <wak...@gm...> - 2009-11-05 19:37:56
|
On Thu, Nov 5, 2009 at 11:25 AM, Chris Shaffer <chr...@gm...> wrote: > My friend says this: > >> I've also spent the last half hour or so trying to implement Mr. Black's >> suggestion for -Duser.dir, without success. After several trials, I was >> able to get Rails to start with that switch in place, but it always starts >> out in "My Documents," regardless of what directory I specify for user.dir. > > Any suggestions? > I think there's a multiple things we can do to begin accommodating this. Adding the extra flags to the batch file and shell script that we ship is the easiest and fastest. This can probably slide into 1.0.7 if we can identify the appropriate settings. If you guys want to test using your own systems and send in patches, that would be ideal. Beyond that, we can probably look at building the support into Rails more directly. I know that registering an association with the .rails file extension is very platform specific. We'll need to investigate if Java has a platform agnostic way of doing this, or if we just need to figure out how to do this on each platform we want to support. In my mind, the primary targets are Windows XP or better, OS X (10.4 or 10.5 and beyond, I'd guess), and Linux (Gnome 2.25+ and KDE 4+). I personally have access to Windows XP, Windows Vista, and RHEL5 and Fedora 11/12 systems. > Also, is this something I should submit as a formal enhancement request? Yes, please submit this as a feature request. > > -- > Chris > > Please consider the environment before printing this e-mail. > ---Brett. > > On Thu, Nov 5, 2009 at 10:33 AM, Jim Black <jim...@ya...> wrote: >> >> Chris, >> >> I might be able to help with the working directory- a Windows user >> told me to use java's "-Duser.dir" argument to set the working >> directory. (I think that's -Duser.dir=/foo/bar, then- whatever the >> typical java cmd-line syntax is.) This is working for windows users, >> apparently, but it doesn't work for me on my mac. >> >> Incidentally, to get consistent time stamps in filenames (like GMT >> time- independent of players' local timezones), start up rails like >> this- >> java -Duser.timezone=UTC -jar rails-1.0.6.jar >> That way, all timestamps will be in UTC format, and consistent. >> >> Like you, I would also like to know how to associate the file type to >> load java/rails- so I can just 'doubleclick' on someone's saved move. >> It would be a little different windows vs mac, I guess, since it's >> batch args to the java cmd line in either case (the association is to >> java, I assume). >> >> - jim >> >> On Nov 5, 2009, at 10:14 AM, Chris Shaffer wrote: >> >> > Is there any way to associate the .rails extension with the program, >> > so you can open a save file directly? Failing that, is there a way >> > to change the default location in which Rails looks for files? I >> > have a friend using Windows and it always defaults to opening his My >> > Documents folder, instead of the Dropbox folder in which we're >> > keeping the files. >> > >> > -- >> > Chris >> > >> > Please consider the environment before printing this e-mail. >> > >> > ------------------------------------------------------------------------------ >> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> > 30-Day >> > trial. Simplify your report design, integration and deployment - and >> > focus on >> > what you do best, core application coding. Discover what's new with >> > Crystal Reports now. >> > http://p.sf.net/sfu/bobj-july_______________________________________________ >> > Rails-devel mailing list >> > Rai...@li... >> > https://lists.sourceforge.net/lists/listinfo/rails-devel >> >> >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Rails-devel mailing list >> Rai...@li... >> https://lists.sourceforge.net/lists/listinfo/rails-devel > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > > |