maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Opera widgets as native n900 applications (https://talk.maemo.org/showthread.php?t=72426)

niloy 2011-04-22 17:25

Opera widgets as native n900 applications
 
2 Attachment(s)
Since both opera widgets and "QT Web Runtime" uses open web technologies to make native applications, I 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, I tried to run Pipe Mania.

Heres the steps I 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!

------
Direct link to the app file

HellFlyer 2011-04-22 17:30

Re: Opera widgets as native n900 applications
 
Awesome! Could you please attach the file here? :)

niloy 2011-04-22 17:48

Re: Opera widgets as native n900 applications
 
Quote:

Originally Posted by HellFlyer (Post 993796)
Awesome! Could you please attach the file here? :)

Here. Also updated first post.

maniu 2011-04-22 18:31

Re: Opera widgets as native n900 applications
 
Sounds very cool!! i tried Forest Tower but it didn't work for me. Let me know if someone get it working.

stickymick 2011-04-22 18:32

Re: Opera widgets as native n900 applications
 
Wow!!! Always wondered about doing this. Used to like running the widgets on the N95-8GB. :)

Wonder what other widgets can be ported.

Bratag 2011-04-22 21:31

Re: Opera widgets as native n900 applications
 
Tried several. Either they didnt run or I got the error Installation failed - Web application.

Alfred 2011-04-23 13:11

Re: Opera widgets as native n900 applications
 
Backgammon also works, but the screen is really small and the filed is a bit messed up. Doesn't worth a try.

N900L 2011-04-23 13:24

Re: Opera widgets as native n900 applications
 
cant install web runtime
not compatible error

leojab 2011-04-23 13:32

Re: Opera widgets as native n900 applications
 
What an idea, sirjee..

Alfred 2011-04-23 13:37

Re: Opera widgets as native n900 applications
 
Quote:

Originally Posted by N900L (Post 994136)
cant install web runtime
not compatible error

Did you install it through deb? try installing it with HAM or FAM


All times are GMT. The time now is 02:16.

vBulletin® Version 3.8.8