Yes and yes. Covering that use case was actually the main reason I splitted that code out of sugar-build.<span></span><br><br>On Tuesday, 8 January 2013, Simon Schampijer wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Daniel,<br>
<br>
the new module is this one [1] I presume. We currently have the emulator packaged for Fedora qit a Desktop file so there is an easy way to launch Sugar from within another Desktop. I guess this would then be a separate package based on sugar-runner.<br>
<br>
Regards,<br>
Simon<br>
<br>
[1] <a href="http://git.sugarlabs.org/sugar-runner" target="_blank">http://git.sugarlabs.org/<u></u>sugar-runner</a><br>
[2] <a href="http://koji.fedoraproject.org/koji/rpminfo?rpmID=3585350" target="_blank">http://koji.fedoraproject.org/<u></u>koji/rpminfo?rpmID=3585350</a><br>
<br>
<br>
<br>
On 12/16/2012 12:24 AM, Daniel Narvaez wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: Daniel Narvaez <<a>dwnarvaez@gmail.com</a>><br>
<br>
Replaced by the sugar-runner module.<br>
<br>
Rationale:<br>
<br>
* sugar-runner is similar in concept to sugar-emulator but it<br>
provides a better user experience. It runs also from a text<br>
console (into a standard X server). It works around Xephyr<br>
issues like international keyboards and multiple outputs.<br>
It tries to work out of the box everywhere, for example<br>
by offering to tweak Xwrapper.config where necessary.<br>
* sugar-runner is better tested with recent sugar code and<br>
recent distributions. It also integrates with sugar-build.<br>
* A separate module make sense here because most users will<br>
never run this code. It's largely a collection of hacks<br>
which are not necessary when running as a normal desktop<br>
environment.<br>
<br>
Why now:<br>
<br>
* We are starting to use GSettings, which requires to setup<br>
the xdg directories to avoid conflicts with GNOME. Thus we<br>
would require to make changes to sugar-emulator to setup<br>
these properly. Maintaining two separate implementation of<br>
basically the same thing is a waste of resources.<br>
* We are at the beginning of the cycle, the best time for<br>
potentially disruptive changes.<br>
---<br>
README | 1 -<br>
bin/Makefile.am | 1 -<br>
bin/sugar-emulator | 14 ---<br>
<a href="http://configure.ac" target="_blank">configure.ac</a> | 1 -<br>
data/Makefile.am | 3 -<br>
data/<a href="http://sugar-emulator.desktop.in" target="_blank">sugar-emulator.desktop.in</a> | 10 ---<br>
src/jarabe/model/session.py | 15 +---<br>
src/jarabe/model/sound.py | 10 +--<br>
src/jarabe/util/Makefile.am | 1 -<br>
src/jarabe/util/emulator.py | 194 ------------------------------<u></u>----------<br>
src/jarabe/view/keyhandler.py | 5 --<br>
11 files changed, 5 insertions(+), 250 deletions(-)<br>
delete mode 100755 bin/sugar-emulator<br>
delete mode 100644 data/<a href="http://sugar-emulator.desktop.in" target="_blank">sugar-emulator.desktop.in</a><br>
delete mode 100644 src/jarabe/util/emulator.py<br>
<br>
diff --git a/README b/README<br>
index 1f89810..cfc196e 100644<br>
--- a/README<br>
+++ b/README<br>
@@ -38,7 +38,6 @@ Alt+r Rotate the screen<br>
Alt+o Toggle overlay visibility<br>
Alt+= Open the developer console<br>
Alt+0 Open the developer console<br>
-Alt+q Quit the emulator<br>
<br>
Ctrl+s Activate sketch mode in chat<br>
<br>
diff --git a/bin/Makefile.am b/bin/Makefile.am<br>
index cb671da..bd38323 100644<br>
--- a/bin/Makefile.am<br>
+++ b/bin/Makefile.am<br>
@@ -1,6 +1,5 @@<br>
python_scripts = \<br>
sugar-control-panel \<br>
- sugar-emulator \<br>
sugar-install-bundle \<br>
sugar-launch<br>
<br>
diff --git a/bin/sugar-emulator b/bin/sugar-emulator<br>
deleted file mode 100755<br>
index 308aac7..0000000<br>
--- a/bin/sugar-emulator<br>
+++ /dev/null<br>
@@ -1,14 +0,0 @@<br>
-#!/bin/sh<br>
-<br>
-if [ "$(id -u)" -eq 0 -o "$(id -ru)" -eq 0 ] ; then<br>
- echo Refusing to run as root.<br>
- exit 3<br>
-fi<br>
-<br>
-# Source debug definitions<br>
-if [ -f ~/.sugar/debug ]; then<br>
- . ~/.sugar/debug<br>
-fi<br>
-<br>
-# Start emulator<br>
-python -c "import sys; from jarabe.util import emulator; sys.argv[0]='$0'; emulator.main()" "$@"<br>
diff --git a/<a href="http://configure.ac" target="_blank">configure.ac</a> b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
index 137e53a..9eae29e 100644<br>
--- a/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
+++ b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
@@ -48,7 +48,6 @@ bin/Makefile<br>
bin/sugar<br>
data/icons/Makefile<br>
data/Makefile<br>
-data/sugar-emulator.desktop<br>
extensions/cpsection/<u></u>aboutcomputer/Makefile<br>
extensions/cpsection/aboutme/<u></u>Makefile<br>
extensions/cpsection/datetime/<u></u>Makefile<br>
diff --git a/data/Makefile.am b/data/Makefile.am<br>
index 6a62d23..39bdb35 100644<br>
--- a/data/Makefile.am<br>
+++ b/data/Makefile.am<br>
@@ -23,9 +23,6 @@ GTKRC_FILES = \<br>
xsessionsdir = $(datadir)/xsessions<br>
xsessions_DATA = sugar.desktop<br>
<br>
-applicationsdir = $(datadir)/applications<br>
-applications_DATA = sugar-emulator.desktop<br>
-<br>
mime_xml_in_files = <a href="http://sugar.xml.in" target="_blank">sugar.xml.in</a><br>
mime_xml_files = $(mime_xml_in_files:.<a href="http://xml.in" target="_blank">xml.in</a>=.<u></u>xml)<br>
@INTLTOOL_XML_RULE@<br>
diff --git a/data/<a href="http://sugar-emulator.desktop.in" target="_blank">sugar-emulator.desktop.<u></u>in</a> b/data/<a href="http://sugar-emulator.desktop.in" target="_blank"></a></blockquote>
______________________________<u></u>_________________<br>
Sugar-devel mailing list<br>
<a>Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/<u></u>listinfo/sugar-devel</a><br>
</blockquote><br><br>-- <br>Daniel Narvaez<br><br>