[Bf-committers] relocatable blender on linux
Campbell Barton
cbarton at metavr.com
Sat Jul 21 23:21:38 CEST 2007
GSR wrote:
> Hi,
> cbarton at metavr.com (2007-07-22 at 0128.04 +1000):
>> At the moment blender on linux always points to ~/.blender/
>
> Notice that it also points to ~/.B.blend and other files in ~/. There
> is no unified dir and some other data is not truly compatible (quick
> example is .B.blend). IMHO one of the first things to do would be to
> unify all conf inside a dir and clean up the hidden issue (hidden
> files inside it, does anybody has a good explanation?).
Im not against relocating .B.blend etc but I think its a separate issue,
and no reason to do it first.
> [...]
>
>> The problem with doing this is linux (unlike windows) dosnt know the
>> full path of its binary so theres no way to find the .blender subdir
>
> In Linux the binary can know its own path, the suggested page mentions
> it (and the source uses it, /proc/self/exe). Is there any need for the
> extra features provided and having to keep yet another dep or periodic
> resyncs? Does the lib provide more than Linux support (I did a quick
> grep for what I knew was one way, not checked if useful for Solaris or
> so), for example? Or would just looking at the /proc/ for the single
> info be enough?
Linux only,
We could just grab the main function thats used to find the exe (~130)
LOC. Since Bunrealoc is designed more to relocatable linux apps that use
/etc /usr/share etc..
> [...]
>> http://autopackage.org/docs/binreloc/
>
> GSR
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>
--
Campbell J Barton (ideasman42)
More information about the Bf-committers
mailing list