Sugar Learning Environment, Activity Toolkit, GTK 3.
Go to file
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>
2019-03-28 15:29:02 +11:00
bin Port from Python 2 to six 2019-03-13 14:23:06 +11:00
doc Release Sugar 0.113 unstable 2019-03-13 15:00:25 +11:00
examples Port from Python 2 to six 2019-03-13 14:23:06 +11:00
m4 Add simple toolbars example 2009-07-10 04:07:10 +00:00
po translate.sugarlabs.org synchronisation {ach,da,fy,he,is,lt,nl,pt,pt_BR,sq} 2019-03-13 14:59:33 +11:00
src Clean up activity environment variables 2019-03-28 15:29:02 +11:00
tests Port from Python 2 to six 2019-03-13 14:23:06 +11:00
.flake8 Add flake8 suppression 2019-03-13 15:01:07 +11:00
.gitignore Add distributed source to .gitignore 2019-03-28 15:29:02 +11:00
AUTHORS
autogen.sh Modernize gettext setup 2014-03-30 11:54:48 +01:00
configure.ac Release Sugar 0.113 unstable 2019-03-13 15:00:25 +11:00
COPYING Make it distcheck. Fix license. 2008-02-06 16:43:10 +01:00
MAINTAINERS Add MAINTAINERS file 2011-12-13 17:37:50 -03:00
make-doc.sh Change make-doc.sh interpreter 2015-12-30 00:11:40 -05:00
Makefile.am Port from Python 2 to six 2019-03-13 14:23:06 +11:00
README.md README - add build and install 2017-07-19 12:38:43 +10:00

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.