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

N900L 2011-04-23 14:06

Re: Opera widgets as native n900 applications
 
with fam ham and deb
nothing works.

m4r0v3r 2011-04-23 15:10

Re: Opera widgets as native n900 applications
 
when I go on the application I get what to run with, when I choose application manager nothing happens?

Helmuth 2011-04-25 22:33

Re: Opera widgets as native n900 applications
 
It works here... :)

Sadly I'm only see the source OR the destination. Not sure if I understood the game... loved this type of games in the past. Perhaps I understand it tomorrow! ;) TANKS!

jook 2011-04-25 23:33

Re: Opera widgets as native n900 applications
 
thanks for information...

Joseph9560 2011-05-02 09:18

Re: Opera widgets as native n900 applications
 
Would love to get app that will automatize the process! Great!!! Simply Great. It would be great if someone starts a thread with name and link of nice opera widgets!

Joseph9560 2011-05-02 09:19

Re: Opera widgets as native n900 applications
 
Quote:

Originally Posted by N900L (Post 994153)
with fam ham and deb
nothing works.

Code:

sudo dpkg -i nameofdeb.deb


All times are GMT. The time now is 17:29.

vBulletin® Version 3.8.8