<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sugarlabs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mohit+nagpal</id>
	<title>Sugar Labs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sugarlabs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mohit+nagpal"/>
	<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/go/Special:Contributions/Mohit_nagpal"/>
	<updated>2026-05-26T01:11:03Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Platform_Team/Guide/Sweets_Usage&amp;diff=60755</id>
		<title>Platform Team/Guide/Sweets Usage</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Platform_Team/Guide/Sweets_Usage&amp;diff=60755"/>
		<updated>2011-01-14T20:05:48Z</updated>

		<summary type="html">&lt;p&gt;Mohit nagpal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide describes how to use Sugar Labs&#039; [[Platform_Team/Doers_environment|Doers environment]] for developing core modules.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Install PackageKit and PackageKit authentication agent from native packages. On Debian-based systems, these packages are {{Code|packagekit}} and {{Code|packagekit-gnome}} (for Gnome Desktop Environment), for fedora 13  {{code|PackageKit}}&lt;br /&gt;
* PackageKit authentication agent should be launched to let the {{Code|sweets}} command install dependencies. Usually it is started after being logged into a Desktop Environment session (it isn&#039;t for Sugar session).&lt;br /&gt;
* Download and launch our [http://download.sugarlabs.org/packages/0sugar/sweets.sh self-extracted installer].&lt;br /&gt;
* Installer will add {{Code|~/.local/bin}} directory to the {{Code|PATH}}. So, re-login from an X session to take into account the new {{Code|PATH}}.&lt;br /&gt;
&lt;br /&gt;
== Clone the sources ==&lt;br /&gt;
&lt;br /&gt;
To checkout sugar project sources:&lt;br /&gt;
&lt;br /&gt;
 sweets --deep clone sugar&lt;br /&gt;
&lt;br /&gt;
Where {{Code|--deep}} says {{Code|sweets}} process all dependencies.&lt;br /&gt;
&lt;br /&gt;
Each project will be placed into the default {{Code|~/sweets}} directory. These are regular sources clones with one exception, each project contains a [[Platform Team/Recipe Specification|sweets.recipe]] spec file.&lt;br /&gt;
Projects might be cloned in the regular way; {{Code|sweets clone}} is just a convenient method since some of the projects are gitorious forks.&lt;br /&gt;
&lt;br /&gt;
== Launch sugar ==&lt;br /&gt;
&lt;br /&gt;
To launch sugar session:&lt;br /&gt;
&lt;br /&gt;
 sweets sugar&lt;br /&gt;
&lt;br /&gt;
or to run from Xephyr:&lt;br /&gt;
&lt;br /&gt;
 sweets sugar:emulator&lt;br /&gt;
&lt;br /&gt;
During the first launch, sources will be built. To rebuild them at any time:&lt;br /&gt;
&lt;br /&gt;
 sweets -ff make &#039;&#039;sweet&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Run sweets from X session ===&lt;br /&gt;
&lt;br /&gt;
Place sweets invocation into your {{Code|~/.xsession}} file:&lt;br /&gt;
&lt;br /&gt;
 PATH=$HOME/.local/bin:$PATH&lt;br /&gt;
 sweets sugar&lt;br /&gt;
&lt;br /&gt;
and create a {{Code|/usr/share/xsessions/sweets.desktop}} desktop file:&lt;br /&gt;
&lt;br /&gt;
 [Desktop Entry]&lt;br /&gt;
 Encoding=UTF-8&lt;br /&gt;
 Name=Sweets&lt;br /&gt;
 GenericName=Sweets&lt;br /&gt;
 Exec=/etc/X11/Xsession&lt;br /&gt;
 Type=Application&lt;br /&gt;
&lt;br /&gt;
== Develop ==&lt;br /&gt;
&lt;br /&gt;
Cloned projects will be built according to {{Code|[Build]}} section commands in recipe files. In general, for autotools-based projects, there is no further need for the {{Code|sweets}} command, just run {{Code|make install}} to build current sources and copy them to the directory that was specified by {{Code|sweets}} in the configure stage.&lt;br /&gt;
&lt;br /&gt;
For glucose projects, there is no need even in calling the {{Code|make}} command, python code will be reused from its original place (see {{Code|binding}} options in recipe files), change the code and restart sugar.&lt;br /&gt;
&lt;br /&gt;
For activities, follow regular activity developing procedure - clone them to {{Code|~/Activities}} directory and run from sugar shell.&lt;br /&gt;
&lt;br /&gt;
== Upgrade ==&lt;br /&gt;
&lt;br /&gt;
To use testing versions, enable &amp;quot;Help test new versions&amp;quot; checkbox on:&lt;br /&gt;
&lt;br /&gt;
 0launch -g&lt;br /&gt;
&lt;br /&gt;
To upgrade sweets itself to the recent version:&lt;br /&gt;
&lt;br /&gt;
 sweets -R upgrade&lt;br /&gt;
&lt;br /&gt;
== Run sweets from sources ==&lt;br /&gt;
&lt;br /&gt;
 git clone git://git.sugarlabs.org/0sugar/sweets.git &#039;&#039;&amp;lt;install-path&amp;gt;&#039;&#039;&lt;br /&gt;
 echo &#039;PATH=~/.local/bin:$PATH&#039; &amp;gt;&amp;gt; ~/.bashrc&lt;br /&gt;
 mkdir -p ~/.local/bin&lt;br /&gt;
 ln -fs &#039;&#039;&amp;lt;install-path&amp;gt;&#039;&#039;/0run ~/.local/bin/0run&lt;br /&gt;
 ln -fs 0run ~/.local/bin/sweets&lt;br /&gt;
 ln -fs 0run ~/.local/bin/0launch&lt;br /&gt;
&lt;br /&gt;
== Current limitations ==&lt;br /&gt;
&lt;br /&gt;
* Glucose needs to be patched, thus these are gitorious forks.&lt;br /&gt;
* Packages cannot be built from sources without cloning.&lt;br /&gt;
* For now, {{Code|sweets}} knowns only about glucose dependencies to install them from native packages in Debian, Ubuntu, Fedora, Mandriva, openSUSE, and Gentoo.&lt;br /&gt;
* Activities can&#039;t reuse sweets benefits.&lt;/div&gt;</summary>
		<author><name>Mohit nagpal</name></author>
	</entry>
	<entry>
		<id>https://wiki.sugarlabs.org/index.php?title=Platform_Team/Guide/Sweets_Usage&amp;diff=60754</id>
		<title>Platform Team/Guide/Sweets Usage</title>
		<link rel="alternate" type="text/html" href="https://wiki.sugarlabs.org/index.php?title=Platform_Team/Guide/Sweets_Usage&amp;diff=60754"/>
		<updated>2011-01-14T20:04:23Z</updated>

		<summary type="html">&lt;p&gt;Mohit nagpal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide describes how to use Sugar Labs&#039; [[Platform_Team/Doers_environment|Doers environment]] for developing core modules.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Install PackageKit and PackageKit authentication agent from native packages. On Debian-based systems, these packages are {{Code|packagekit}} and {{Code|packagekit-gnome}} (for Gnome Desktop Environment), for fedora 13 - {code|PackageKit}&lt;br /&gt;
* PackageKit authentication agent should be launched to let the {{Code|sweets}} command install dependencies. Usually it is started after being logged into a Desktop Environment session (it isn&#039;t for Sugar session).&lt;br /&gt;
* Download and launch our [http://download.sugarlabs.org/packages/0sugar/sweets.sh self-extracted installer].&lt;br /&gt;
* Installer will add {{Code|~/.local/bin}} directory to the {{Code|PATH}}. So, re-login from an X session to take into account the new {{Code|PATH}}.&lt;br /&gt;
&lt;br /&gt;
== Clone the sources ==&lt;br /&gt;
&lt;br /&gt;
To checkout sugar project sources:&lt;br /&gt;
&lt;br /&gt;
 sweets --deep clone sugar&lt;br /&gt;
&lt;br /&gt;
Where {{Code|--deep}} says {{Code|sweets}} process all dependencies.&lt;br /&gt;
&lt;br /&gt;
Each project will be placed into the default {{Code|~/sweets}} directory. These are regular sources clones with one exception, each project contains a [[Platform Team/Recipe Specification|sweets.recipe]] spec file.&lt;br /&gt;
Projects might be cloned in the regular way; {{Code|sweets clone}} is just a convenient method since some of the projects are gitorious forks.&lt;br /&gt;
&lt;br /&gt;
== Launch sugar ==&lt;br /&gt;
&lt;br /&gt;
To launch sugar session:&lt;br /&gt;
&lt;br /&gt;
 sweets sugar&lt;br /&gt;
&lt;br /&gt;
or to run from Xephyr:&lt;br /&gt;
&lt;br /&gt;
 sweets sugar:emulator&lt;br /&gt;
&lt;br /&gt;
During the first launch, sources will be built. To rebuild them at any time:&lt;br /&gt;
&lt;br /&gt;
 sweets -ff make &#039;&#039;sweet&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Run sweets from X session ===&lt;br /&gt;
&lt;br /&gt;
Place sweets invocation into your {{Code|~/.xsession}} file:&lt;br /&gt;
&lt;br /&gt;
 PATH=$HOME/.local/bin:$PATH&lt;br /&gt;
 sweets sugar&lt;br /&gt;
&lt;br /&gt;
and create a {{Code|/usr/share/xsessions/sweets.desktop}} desktop file:&lt;br /&gt;
&lt;br /&gt;
 [Desktop Entry]&lt;br /&gt;
 Encoding=UTF-8&lt;br /&gt;
 Name=Sweets&lt;br /&gt;
 GenericName=Sweets&lt;br /&gt;
 Exec=/etc/X11/Xsession&lt;br /&gt;
 Type=Application&lt;br /&gt;
&lt;br /&gt;
== Develop ==&lt;br /&gt;
&lt;br /&gt;
Cloned projects will be built according to {{Code|[Build]}} section commands in recipe files. In general, for autotools-based projects, there is no further need for the {{Code|sweets}} command, just run {{Code|make install}} to build current sources and copy them to the directory that was specified by {{Code|sweets}} in the configure stage.&lt;br /&gt;
&lt;br /&gt;
For glucose projects, there is no need even in calling the {{Code|make}} command, python code will be reused from its original place (see {{Code|binding}} options in recipe files), change the code and restart sugar.&lt;br /&gt;
&lt;br /&gt;
For activities, follow regular activity developing procedure - clone them to {{Code|~/Activities}} directory and run from sugar shell.&lt;br /&gt;
&lt;br /&gt;
== Upgrade ==&lt;br /&gt;
&lt;br /&gt;
To use testing versions, enable &amp;quot;Help test new versions&amp;quot; checkbox on:&lt;br /&gt;
&lt;br /&gt;
 0launch -g&lt;br /&gt;
&lt;br /&gt;
To upgrade sweets itself to the recent version:&lt;br /&gt;
&lt;br /&gt;
 sweets -R upgrade&lt;br /&gt;
&lt;br /&gt;
== Run sweets from sources ==&lt;br /&gt;
&lt;br /&gt;
 git clone git://git.sugarlabs.org/0sugar/sweets.git &#039;&#039;&amp;lt;install-path&amp;gt;&#039;&#039;&lt;br /&gt;
 echo &#039;PATH=~/.local/bin:$PATH&#039; &amp;gt;&amp;gt; ~/.bashrc&lt;br /&gt;
 mkdir -p ~/.local/bin&lt;br /&gt;
 ln -fs &#039;&#039;&amp;lt;install-path&amp;gt;&#039;&#039;/0run ~/.local/bin/0run&lt;br /&gt;
 ln -fs 0run ~/.local/bin/sweets&lt;br /&gt;
 ln -fs 0run ~/.local/bin/0launch&lt;br /&gt;
&lt;br /&gt;
== Current limitations ==&lt;br /&gt;
&lt;br /&gt;
* Glucose needs to be patched, thus these are gitorious forks.&lt;br /&gt;
* Packages cannot be built from sources without cloning.&lt;br /&gt;
* For now, {{Code|sweets}} knowns only about glucose dependencies to install them from native packages in Debian, Ubuntu, Fedora, Mandriva, openSUSE, and Gentoo.&lt;br /&gt;
* Activities can&#039;t reuse sweets benefits.&lt;/div&gt;</summary>
		<author><name>Mohit nagpal</name></author>
	</entry>
</feed>