Friday, April 22, 2011

[How To] Run Opera widgets as native n900 applications !

Posted on 11:01 PM by SlipKoRnSaad

Since both opera widgets and "QT Web Runtime" uses open web technologies to make native applications, niloy was wondering if its possible to make opera widgets run natively on N900. It turned out to be surprisingly easy.



"QT Web Runtime" needs to be installed from extra-devel if you dont have it installed already.

As the experiment, he tried to run Pipe Mania.

Heres the steps he did to "port" pipe mania:

1) Download pipe mania.

2) It will have .wgt extension which is just a zipped archive renamed to .wgt. Extract the contents.

3) The extracted folder will have all the html, css, js files. The config.xml needs to be edited.

This was the original file:

Code:
<?xml version='1.0' encoding='UTF-8'?>

<widget height="688" version="1.0" viewmodes="floating" width="467">
  <name>Pipe mania</name>
  <description>Old school Pipe Mania game reactivated!</description>
  <icon>icons/icon-128.png</icon>
  <icon>icons/icon-64.png</icon>
  <icon>icons/icon-32.png</icon>
  <icon>icons/icon-16.png</icon>
  <width>413</width>
  <height>605</height>
  <author>
    <name>Opera widgets</name>
    <organization />
    <email />
    <link />
  </author>
  <widgetname>Pipe Mania</widgetname>
</widget>
I modified to this:

Code:

<?xml version='1.0' encoding='utf-8'?>
<widget xmlns="http://www.w3.org/ns/widgets" version="1.0" viewmodes="maximized">
  <name>Pipe mania</name>
  <description>Old school Pipe Mania game reactivated!</description>
  <content src="index.html" />
  <icon src="icons/icon-32.png" />
  <width>413</width>
  <height>605</height>
</widget>
4) Select all files & folders including the config.xml and compress to a zip archive. Do not archive the parent folder, it wont work. Change the extension from .zip to .wgt.

5) Copy the file to n900 and run using file manager. The application will be installed and a shortcut will be created in the application menu. Play the game!

More on the original thread !

No Response to "[How To] Run Opera widgets as native n900 applications !"

Leave A Reply