Neat attempt, Kandarp. Copying Debian OLPC list serv and Mike on this memo.<br><br><div>-Manu</div><div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Kandarp Kaushik</b> <span dir="ltr"><<a href="mailto:kandarp@seeta.in">kandarp@seeta.in</a>></span><br>
Date: Sun, Aug 8, 2010 at 1:23 AM<br>Subject: Packaging eLearning XHTML editor (eXe) for debian<br>To: Manusheel Gupta <<a href="mailto:manu@laptop.org">manu@laptop.org</a>><br>Cc: David Farning <<a href="mailto:dfarning@gmail.com">dfarning@gmail.com</a>><br>
<br><br>Hello,<div><br></div><div>I tried packaging eXe for debian.</div><div><br></div><div>The package already had a script exe/installs/debian/ubuntu/make.py to successfully create the deb package for ubuntu.</div><div>
<br></div>
<div>To create debian package, I renamed ubuntu folder as debian, changed debian/<a href="http://changelog.in" target="_blank">changelog.in</a> by renaming the version ( removed ubuntu from it ) and replaced </div><div><div>
cl.write("%s (%s-ubuntu1) unstable; urgency=low\n" % </div><div> (exepkg, version.version))</div></div><div>with </div><div><div>cl.write("%s (%s-1) unstable; urgency=low\n" % </div><div>
(exepkg, version.version))</div></div><div><br></div><div>in exe/installs/debian/ubuntu/make.py</div><div><br></div><div>But on installing and running exe from the terminal, it calls firefox, which isn't installed on my system, so it didn't start in the web browser.</div>
<div><div>OUTPUT:</div><div>$ exe %f</div><div>sh: firefox: not found</div><div>sh: firefox: not found</div><div>Welcome to eXe: the eLearning XHTML editor</div><div>^C</div></div><div><br></div><div><br></div><div>The browser is being set as firefox in </div>
<div>exe/engine/config.py ( line 74 )</div><div>--------------------------------------------</div><div>self.browserPath = Path("firefox") </div><div>--------------------------------------------</div><div><br></div>
<div><br></div><div>and is being called in </div><div>exe/webui/browser.py ( line 117 )</div><div>--------------------------------------------</div><div><div>if sys.platform[:5] == u"linux":</div><div> setBrowserVersion(config.browserPath, config.configDir/profile)</div>
</div><div>--------------------------------------------</div><div><br></div><div><br></div><div>I tried replacing firefox with chromium-browser, that launches chromium, but doesn't start exelearning.</div><div>Please let me know if the build process is correct ( I modified <a href="http://changelog.in" target="_blank">changelog.in</a> and make.py only ) and if it could be modified so that it detects the installed browser and start exelearning in it.</div>
<div><br></div><div><br></div><div>Regards,</div><div>Kandarp.</div>
</div><br></div>