From 01da88551614a062b11659bd7f3a7330e5bde59a Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 10 Jul 2006 16:16:30 +0200 Subject: [PATCH] Lots of build fixes --- activities/browser/Makefile.am | 2 -- configure.ac | 1 - shell/Makefile.am | 17 +++++++++-------- shell/sugar | 13 ++++++------- sugar/Makefile.am | 9 +++++---- sugar/chat/Makefile.am | 1 - 6 files changed, 20 insertions(+), 23 deletions(-) diff --git a/activities/browser/Makefile.am b/activities/browser/Makefile.am index b25e52da..8cb2f84b 100644 --- a/activities/browser/Makefile.am +++ b/activities/browser/Makefile.am @@ -1,9 +1,7 @@ sugardir = $(pkgdatadir)/activities/browser sugar_PYTHON = \ __init__.py \ - browser.py \ NotificationBar.py \ - BrowserShell.py \ AddressItem.py \ BrowserActivity.py \ NavigationToolbar.py diff --git a/configure.ac b/configure.ac index b63aa68a..1969e591 100644 --- a/configure.ac +++ b/configure.ac @@ -27,7 +27,6 @@ activities/Makefile activities/browser/Makefile activities/chat/Makefile shell/Makefile -shell/google/Makefile shell/session/Makefile sugar/Makefile sugar/__installed__.py diff --git a/shell/Makefile.am b/shell/Makefile.am index 371d2452..6410546e 100644 --- a/shell/Makefile.am +++ b/shell/Makefile.am @@ -1,14 +1,15 @@ -SUBDIRS = google session +SUBDIRS = session bin_SCRIPTS = sugar sugardir = $(pkgdatadir)/shell -sugar_PYTHON = \ - __init__.py \ - shell.py \ - Owner.py \ - PresenceWindow.py \ - StartPage.py \ - WindowManager.py +sugar_PYTHON = \ + __init__.py \ + ActivityRegistry.py \ + ConsoleLogger.py \ + Owner.py \ + HomeWindow.py \ + PresenceWindow.py \ + Shell.py EXTRA_DIST = sugar diff --git a/shell/sugar b/shell/sugar index 9a857dbd..d352442c 100755 --- a/shell/sugar +++ b/shell/sugar @@ -5,8 +5,6 @@ import os import pwd import random -import pygtk -pygtk.require('2.0') import gobject # FIXME How to pick a good display number @@ -15,7 +13,8 @@ XEPHYR_DISPLAY = 100 def add_to_python_path(path): sys.path.insert(0, path) if os.environ.has_key('PYTHONPATH'): - os.environ['PYTHONPATH'] += ':' + path + old_path = os.environ['PYTHONPATH'] + os.environ['PYTHONPATH'] = path + ':' + old_path else: os.environ['PYTHONPATH'] = path @@ -52,6 +51,10 @@ def start_matchbox(): def stop_matchbox(): os.kill(xephyr_pid) + +start_xephyr() +os.environ['DISPLAY'] = ":%d" % (XEPHYR_DISPLAY) +start_matchbox() i = 0 dbus_daemon_pid = None @@ -83,10 +86,6 @@ else: import sugar.env add_to_python_path(os.path.join(sugar.env.get_data_dir(), 'shell')) print 'Running the installed sugar...' - -start_xephyr() -os.environ['DISPLAY'] = ":%d" % (XEPHYR_DISPLAY) -start_matchbox() print 'Redirecting output to the console, press Ctrl+Down to open it.' diff --git a/sugar/Makefile.am b/sugar/Makefile.am index 83121a0c..c69d4b2b 100644 --- a/sugar/Makefile.am +++ b/sugar/Makefile.am @@ -2,11 +2,12 @@ SUBDIRS = activity chat p2p presence sugardir = $(pythondir)/sugar sugar_PYTHON = \ - __init__.py \ + __init__.py \ __installed__.py \ - bots.py \ - env.py \ - util.py \ + bots.py \ + env.py \ + keybindings.py \ + util.py \ LogWriter.py EXTRA_DIST = __uninstalled__.py diff --git a/sugar/chat/Makefile.am b/sugar/chat/Makefile.am index cfe7ee32..94b3d609 100644 --- a/sugar/chat/Makefile.am +++ b/sugar/chat/Makefile.am @@ -8,7 +8,6 @@ sugar_PYTHON = \ Chat.py \ ChatEditor.py \ ChatToolbar.py \ - ChatWindow.py \ Emoticons.py \ GroupChat.py \ MeshChat.py \