[Sugar-devel] Changing home page in Browse

forster at ozonline.com.au forster at ozonline.com.au
Tue Mar 15 03:29:13 EDT 2011


> Using Browse 108.4, as distributed with OLPC OS 10.1.3, how can I
> change the home page? I want the home page button to go to somewhere
> else.

this might work:
webactivity.py
(3 / 1)

	357	357	if os.path.isfile(_LIBRARY_PATH):
	358	358	self._browser.load_uri('file://' + _LIBRARY_PATH)
	359	359	else:
	360		self._browser.load_uri('http://sugarlabs.org')
		360	default_page = os.path.join(activity.get_bundle_path(),
		361	"data/index.html")
		362	self._browser.load_uri(default_page)




More information about the Sugar-devel mailing list