diff options
author | Michael Stone <michael@laptop.org> | 2009-07-08 03:02:31 (GMT) |
---|---|---|
committer | Michael Stone <michael@laptop.org> | 2009-07-08 03:02:31 (GMT) |
commit | 8f3515ede75318baad458c316c21acfb7c9f0f62 (patch) | |
tree | 65a5fec567a2d26b00fc496c12f27090801b8692 | |
parent | de36b7534f7342062c3c46d8027f4b14dd68dab3 (diff) |
Make rainbow-sugarize set up /{data,instance,tmp}.
-rwxr-xr-x | rainbow/bin/rainbow-sugarize | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rainbow/bin/rainbow-sugarize b/rainbow/bin/rainbow-sugarize index b350479..4287339 100755 --- a/rainbow/bin/rainbow-sugarize +++ b/rainbow/bin/rainbow-sugarize @@ -3,7 +3,7 @@ import sys import pwd -from os import getuid, getgid, environ, chmod, chown +from os import getuid, getgid, environ, chmod, chown, symlink from os.path import join, isdir, dirname from optparse import OptionParser from shutil import copyfile @@ -80,6 +80,10 @@ def main(): write_envvar('TMPDIR', join(h_i, 'tmp')) write_envvar('DISPLAY', environ['DISPLAY']) + symlink(".", join(h_i, "instance")) + symlink(environ["SUGAR_BUNDLE_ID"], join(h_i, "data")) + symlink(environ.get("TMPDIR", "/tmp"), join(h_i, "tmp")) + if __name__ == '__main__': main() |