[Debian-olpc-devel] Bug#522231: Bug#522231: Bug#522231: sugar-emulator: sugar-shell crashes on startup

Matijs van Zuijlen Matijs.van.Zuijlen at xs4all.nl
Fri Apr 3 11:49:22 UTC 2009


Jonas Smedegaard wrote:
>> "/usr/bin/sugar-shell": not in executable format: File format not recognized
> 
> Above seems suspicious.

I think it's a message from gdb when it's asked to make the backtrace
for bug-buddy.

> Please provide the output of these commands:
> 
>      echo $PATH

/usr/local/bin:/usr/bin:/bin:/usr/games:/var/lib/gems/1.8/bin:/home/matijs/bin

>      ls -l /usr/bin/sugar-shell

-rwxr-xr-x 1 root root 1037 2009-01-20 05:41 /usr/bin/sugar-shell

>      cat /usr/bin/sugar-shell

#!/usr/bin/env python
# Copyright (C) 2008, Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA

import os
import sys

if os.environ.has_key('SUGAR_THEME'):
    theme = os.environ['SUGAR_THEME']
else:
    theme = 'sugar'

os.environ['GTK2_RC_FILES'] = '/usr/share/sugar/data/%s.gtkrc' % theme

sys.path.insert(0, '/usr/share/sugar/shell')

from main import main

main()

-- 
Matijs





More information about the Debian-olpc-devel mailing list