[Bugs] #2459 UNSP: tries to create file outside $SUGAR_ACTIVITY_ROOT/data and dies

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Sun Oct 17 15:20:42 EDT 2010


#2459: tries to create file outside $SUGAR_ACTIVITY_ROOT/data and dies
------------------------------------------+---------------------------------
    Reporter:  sascha_silbe               |          Owner:  sayamindu                  
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Terminal                   |        Version:  Git as of bugdate          
    Severity:  Blocker                    |       Keywords:                             
Status_field:  New                        |   Distribution:                             
   Seeta_dev:                             |  
------------------------------------------+---------------------------------
 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>
     main.main()
   File "/usr/lib/python2.6/dist-packages/sugar/activity/main.py", line
 152, in main
     create_activity_instance(activity_constructor, activity_handle)
   File "/usr/lib/python2.6/dist-packages/sugar/activity/main.py", line 37,
 in create_activity_instance
     activity = constructor(handle)
   File "/home/sascha.silbe/Activities/Terminal.activity/terminal.py", line
 140, in __init__
     self._create_tab(None)
   File "/home/sascha.silbe/Activities/Terminal.activity/terminal.py", line
 278, in _create_tab
     self._configure_vt(vt)
   File "/home/sascha.silbe/Activities/Terminal.activity/terminal.py", 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 [http://wiki.sugarlabs.org/go/Development_Team/Low-
 level_Activity_API#Writable_Directories Low-level API docs] you should use
 {{{$SUGAR_ACTIVITY_ROOT/data/terminalrc}}} instead.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2459>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list