More build fixes. Add a script for presence service.

This commit is contained in:
Marco Pesenti Gritti 2006-07-24 16:24:39 +02:00
parent 7e40025966
commit 7f39ed44e9
5 changed files with 14 additions and 7 deletions

View File

@ -1,10 +1,11 @@
SUBDIRS = PresenceService data SUBDIRS = PresenceService data
bin_SCRIPTS = \ bin_SCRIPTS = \
sugar \ sugar \
sugar-activity \ sugar-activity \
sugar-activity-factory \ sugar-activity-factory \
sugar-people sugar-people \
sugar-presence-service
sugardir = $(pkgdatadir)/shell sugardir = $(pkgdatadir)/shell
sugar_PYTHON = \ sugar_PYTHON = \

View File

@ -1,4 +1,4 @@
sugardir = $(pkgdatadir)/shell sugardir = $(pkgdatadir)/shell/PresenceService
sugar_PYTHON = \ sugar_PYTHON = \
__init__.py \ __init__.py \
Activity.py \ Activity.py \

View File

@ -47,13 +47,14 @@ class MatchboxProcess(Process):
class PresenceServiceProcess(Process): class PresenceServiceProcess(Process):
def __init__(self): def __init__(self):
Process.__init__(self, "python shell/PresenceService/PresenceService.py",) Process.__init__(self, "sugar-presence-service",)
def get_name(self): def get_name(self):
return "PresenceService" return "PresenceService"
def start(self): def start(self):
Process.start(self) Process.start(self)
# FIXME we really need something better
time.sleep(3) time.sleep(3)
class Session: class Session:

View File

@ -1,7 +1,7 @@
confdir = $(datadir) confdir = $(pkgdatadir)
conf_DATA = kbdconfig conf_DATA = kbdconfig
imagesdir = $(datadir) imagesdir = $(pkgdatadir)
images_DATA = \ images_DATA = \
home-background.png home-background.png

5
shell/sugar-presence-service Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/python
from PresenceService import PresenceService
PresenceService.main()