Add script to launch an activity. Associate F4 in the wm to the terminal activity

This commit is contained in:
Marco Pesenti Gritti 2006-07-20 10:49:44 +02:00
parent af54f25e0e
commit 53947aaaf2
3 changed files with 13 additions and 1 deletions

View File

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

View File

@ -7,3 +7,4 @@
<Alt>c=close <Alt>c=close
f1=desktop f1=desktop
f2=!sugar-people f2=!sugar-people
f4=!sugar-activity org.sugar.Terminal

7
shell/sugar-activity Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/python
import sys
from sugar.activity import Activity
Activity.create(sys.argv[1])