06/13/2009, 12:27 PM
|
#1 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 2
Likes Received: 0
Thanks: 0
Thanked 4 Times in 1 Post
|
Well I was playing with the file system and found out how simple it is to create a homebrewed application.
Step 1: Root Pre -- see rooting entry in the wiki Step 2: Open Terminal Step 3: Create directory for application /usr/palm/applications/com--DOT--palm--DOT--app--DOT--APPLICATION_SHORT_NAME Step 4: Enter directory and create `.project` and having the contents Code:
<?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>com--DOT--palm--DOT--app--DOT--APPLICATION_SHORT_NAME</name> <comment></comment> <projects> </projects> <buildSpec> </buildSpec> <natures> <nature>com--DOT--palm--DOT--luna--DOT--sdk--DOT--lunaNature</nature> </natures> </projectDescription> Code:
{
"title": "APPLICATION_LONG_NAME",
"type": "web",
"main": "index--DOT--html",
"id": "com--DOT--palm--DOT--app--DOT--APPLICATION_SHORT_NAME"
}
Code:
<?xml version="1--DOT--0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1--DOT--1//EN" "http--COLON--//www--DOT--w3--DOT--org/TR/xhtml11/DTD/xhtml11--DOT--dtd"> <html xmlns="http--COLON--//www--DOT--w3--DOT--org/1999/xhtml" xml:lang="en"> <head> <title>APPLICATION_LONG_NAME</title> </head> <body> Hello Magical World </body> </html> Step 8: Reboot pre Step 9: Run your application Step 10: Profit General Disclaimer: Use at your own risk. This may cause issues, void your warranty, cause aliens to abduct your sole. Whatever happens... I warned you. But it worked for me. P.S. Sorry for the uglyness. Can't post links so replace --DOT-- with a period and --COLON-- with a colon. |
06/13/2009, 02:12 PM
|
#2 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 16
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
Hmm. This doesn't seem to be working for me. I edited all the spots where you had dashes and updated the long and short names, but after I reboot it still doesn't show up in my launcher.
|
06/13/2009, 04:38 PM
|
#3 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 16
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
|
Yeah that was the missing element. I saw that path on the wiki somewhere, and as soon as I dropped my folder into there it worked fine; didn't even require a reboot.
Great first step tutorial. |
06/13/2009, 08:17 PM
|
#5 (permalink) |
|
Member
![]() Join Date: Jun 2009
Location: Albany, NY
Posts: 10
Likes Received: 0
Thanks: 11
Thanked 2 Times in 1 Post
|
Hmm, when I first saw the .project file, I assumed it was created by the developer's editor software. I know some IDE's keep info in that file (Eclipse, etc). Can anyone confirm that this file is actually used by webOS?
|
06/13/2009, 08:46 PM
|
#6 (permalink) | |
|
Member
![]() ![]() Join Date: Nov 2007
Location: Rhode Island, USA
Posts: 1,739
Likes Received: 15
Thanks: 381
Thanked 398 Times in 217 Posts
|
Quote:
I know this isn't really the right place to post, but I couldn't help but reply specifically to your post. I was wondering if there was a way to set up a streaming program through a VPN. My idea, to bypass the limited 8 GB internal memory, is to have all my media (possibly TBs worth) all stored on a desktop at home (preferrably just normal Windows on it, not server software). I was thinking we could use VPN software (or whatever linux uses, pardon my ignorance) to get access to our home computers and stream media such as music or videos without having to save them to our Pre. Something, kind of like what Windows has with WMP (if you're familiar with it) where you can allow, and look up computers on your network and go through their media files and stream them. What do you think? Last edited by SirataXero; 06/13/2009 at 08:47 PM. Reason: clarification |
|
06/13/2009, 09:22 PM
|
#7 (permalink) |
|
Member
![]() Join Date: May 2007
Location: Northern Virginia
Posts: 635
Likes Received: 19
Thanks: 63
Thanked 212 Times in 110 Posts
|
Yeah, I am pretty sure that you are correct. You can almost certainly skip this step...and not even include a .project file.
__________________
IIIx -> Tungsten T -> Treo 650 -> Treo 700p -> Launch day Pre |
06/13/2009, 10:25 PM
|
#9 (permalink) |
|
Member
![]() Join Date: May 2007
Location: Northern Virginia
Posts: 635
Likes Received: 19
Thanks: 63
Thanked 212 Times in 110 Posts
|
Here is my "Steve Test" application in the launcher: ![]() (yeah, I borrowed that icon from another application )...and here is my awesome application: ![]() Expect to see it in the app store soon. ![]() cheers, Steve
__________________
IIIx -> Tungsten T -> Treo 650 -> Treo 700p -> Launch day Pre |
06/14/2009, 01:20 PM
|
#11 (permalink) |
|
Member
![]() ![]() Join Date: May 2009
Posts: 249
Likes Received: 0
Thanks: 13
Thanked 69 Times in 26 Posts
|
I rooted my pre and can initiate a command line session but when i try to run the mkdir command it tells me that the directory is read-only although doing a whoami says that I'm root.
Anyone else come across this problem? |
06/14/2009, 01:29 PM
|
#12 (permalink) | |
|
Member
![]() Join Date: Mar 2007
Posts: 35
Likes Received: 0
Thanks: 0
Thanked 1 Time in 1 Post
|
Quote:
Code:
rootfs_open -w |
|
06/14/2009, 05:43 PM
|
#15 (permalink) |
|
Member
![]() ![]() Join Date: May 2009
Posts: 249
Likes Received: 0
Thanks: 13
Thanked 69 Times in 26 Posts
|
Nevermind. I rebooted and it showed up. I thought from one of the posts above that if it was in /var/usr/palm/applications, a reboot was not necessary.
The other issue I'm having is that despite having changed the icon file and replaced it, and rebooting, the app still has the old icon. Seems like the Pre may b caching the application icons somewhere. |
06/14/2009, 05:58 PM
|
#16 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Posts: 211
Likes Received: 0
Thanks: 28
Thanked 147 Times in 41 Posts
|
Advantage: This makes it a lot easier to develop applicaitons, make incremental changes, and test them on your Pre. Just mount as USB drive and hack away!
Disadvantage: Your changes in Step 2 may be clobbered by a future WebOS OTA update. 1. Log in to your Pre, priv up, and remount / as read-write. 2. Edit /etc/palm/luna.conf. In the "General" section at the top, there is a setting for ApplicationPath. This should be on or around line 7. It should look something like this: Code:
ApplicationPath=/usr/lib/luna/applications:/var/luna/applications:/var/usr/lib/luna/applications:/usr/palm/applications:/var/usr/palm/applications Code:
:/media/internal/applications You may now mount your Pre as a USB drive, create an "applications" directory, and put your applications there. Once you create a new application there, you will need to reboot your Pre to cause the Launcher to show it. [You can also run "pkill LunaSysMgr" as root (without the quotes); LunaSysMgr will restart.] The good news: While creating a new application requires a reboot/pkill, changing an existing application should not. (I've only tried a simple HTML change, no JavaScript changes or anything.) |
06/15/2009, 08:04 AM
|
#17 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Posts: 784
Likes Received: 13
Thanks: 26
Thanked 96 Times in 76 Posts
|
This is very cool. Its the start of application devoplment, I just wish there was a easy way to install these applications that people make rather then rooting your pre and copying the application directory.
Does it have to be made into a installer that can be downloaded before we can start doing things like this? |
06/16/2009, 01:43 AM
|
#20 (permalink) |
|
Member
![]() Join Date: Nov 2004
Posts: 1,212
Likes Received: 0
Thanks: 20
Thanked 41 Times in 24 Posts
|
What are the consequences of leaving rootfs in read/write? I've just left it that way with no probs. I notice many references to putting it back to read only.
__________________
Sprint Pre, Mugen 2800mah battery |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



