Sugar Learning Environment, Activity Toolkit, GTK 3.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
James Cameron 2453d13b03 Clean up activity environment variables
Ensure environment variables needed by Python activities are available
in each of the three supported scenarios;

- started from Sugar,

- started from Terminal inside Sugar,

- started by other desktop environments.

Variables always available are;

SUGAR_ACTIVITY_ROOT
SUGAR_BUNDLE_ID
SUGAR_BUNDLE_NAME
SUGAR_BUNDLE_PATH
SUGAR_BUNDLE_VERSION

Variables also available when started from Sugar are;

SUGAR_ACTIVITIES_HIDDEN
SUGAR_APISOCKET_KEY
SUGAR_APISOCKET_PORT
SUGAR_GROUP_LABELS
SUGAR_HOME
SUGAR_MIME_DEFAULTS
SUGAR_PROFILE
SUGAR_SCALING
SUGAR_VERSION

Variables also available when started from Terminal are;

SUGAR_TERMINAL_VERSION

Other changes;

- use os.makedirs in place of distutils.dir_util.mkpath,

- avoid redundant setting of SUGAR_BUNDLE_PATH,

- do not set SUGAR_BUNDLE_ID unnecessarily,

- add explanatory comment,

Tested on Ubuntu 18.04.

Signed-off-by: James Cameron <quozl@laptop.org>
5 years ago
bin Port from Python 2 to six 5 years ago
doc Release Sugar 0.113 unstable 5 years ago
examples Port from Python 2 to six 5 years ago
m4 Add simple toolbars example 15 years ago
po translate.sugarlabs.org synchronisation {ach,da,fy,he,is,lt,nl,pt,pt_BR,sq} 5 years ago
src Clean up activity environment variables 5 years ago
tests Port from Python 2 to six 5 years ago
.flake8 Add flake8 suppression 5 years ago
.gitignore Add distributed source to .gitignore 5 years ago
AUTHORS Add AUTHORS file 17 years ago
COPYING Make it distcheck. Fix license. 16 years ago
MAINTAINERS Add MAINTAINERS file 13 years ago
Makefile.am Port from Python 2 to six 5 years ago
README.md README - add build and install 7 years ago
autogen.sh Modernize gettext setup 10 years ago
configure.ac Release Sugar 0.113 unstable 5 years ago
make-doc.sh Change make-doc.sh interpreter 8 years ago

README.md

Sugar Toolkit

Sugar Toolkit provides services and a set of GTK+ widgets to build activities and other Sugar components on Linux based computers.

This is the GTK+ 3 binding of the Sugar Toolkit.

https://www.sugarlabs.org/

https://wiki.sugarlabs.org/

Installing on Debian or Ubuntu

Automatically done when you install Sugar desktop.

To install Sugar Toolkit alone without Sugar desktop,

sudo apt install python-sugar3

Installing on Fedora

Automatically done when you install Sugar desktop.

To install Sugar Toolkit alone without Sugar desktop,

sudo dnf install sugar-toolkit-gtk3

Building

Sugar Toolkit follows the GNU Coding Standards.

Install all dependencies, especially sugar-artwork and sugar-datastore.

Clone the repository, run autogen.sh, then make and make install.