Opened 13 years ago

Closed 11 years ago

#2459 closed defect (obsolete)

tries to create file outside $SUGAR_ACTIVITY_ROOT/data and dies

Reported by: sascha_silbe Owned by: sayamindu
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Terminal Version: Git as of bugdate
Severity: Blocker Keywords:
Cc: Distribution/OS:
Bug Status: New


Terminal tries to create ~/.sugar/default/terminalrc and dies because it isn't allowed to do that when running under Rainbow:

Traceback (most recent call last):
  File "/usr/bin/sugar-activity", line 21, in <module>
  File "/usr/lib/python2.6/dist-packages/sugar/activity/", line 152, in main
    create_activity_instance(activity_constructor, activity_handle)
  File "/usr/lib/python2.6/dist-packages/sugar/activity/", line 37, in create_activity_instance
    activity = constructor(handle)
  File "/home/sascha.silbe/Activities/Terminal.activity/", line 140, in __init__
  File "/home/sascha.silbe/Activities/Terminal.activity/", line 278, in _create_tab
  File "/home/sascha.silbe/Activities/Terminal.activity/", line 479, in _configure_vt
    conf.write(open(conf_file, 'w'))
IOError: [Errno 13] Permission denied: '/var/spool/rainbow/2/uid_to_home_dir/10039/.sugar/default/terminalrc'

According to the Low-level API docs you should use $SUGAR_ACTIVITY_ROOT/data/terminalrc instead.

Change History (3)

comment:1 Changed 13 years ago by RafaelOrtiz

Problem here is that conf file is maped from os.path.join(env.get_profile_path(), 'terminalrc', thats why the rainbow exeption,

comment:2 Changed 13 years ago by RafaelOrtiz

Tested version 31 in dextrose and seems to be o.k...but how do I re.enable rainbow to test this?. do we have a test build for rainbow ?.

comment:3 Changed 11 years ago by godiard

  • Resolution set to obsolete
  • Status changed from new to closed

Rainbow is not in use anymore.

Closing as obsolete

Note: See TracTickets for help on using tickets.