Re: [TuxKart-devel] Location sysem
Status: Alpha
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2004-06-27 21:19:53
|
Ricardo Cruz wrote: > I noticed that TuxKart doesn't make a very smart checking where it is placed. > Just looks at local dir, up dir and system chunk (/usr). If you 'make install', it should work out where it is OK...but you're right, it could be better. > Smarter location checking would be: > - asking proc for the binary directory; > - look at the way the binary was executed - won't be able to get the location > for symlinks. OK - gimme your sourceforge user name - you'll have CVS access and you can attack it. > By the way, using chdir() is kinda of ugly. What about having a global > string? It's a LOT easier that way - no more messing around strcat'ing strings - all the files are always in the exact same place once you've chdir'ed to the right directory. Why do you think it's ugly? > Best fix, however, would be to make Linux file manager to execute binaries > from their own dir. Hmmm - that's pretty controversial. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |