Jump to content


Photo

Aight, I'll Post It Then!


  • Please log in to reply
52 replies to this topic

#46 Na-Noo

Na-Noo

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1003 posts

Posted 13 November 2009 - 10:44 AM

So you download a PMD, with the sole purpose of executing it, place it on an SD card, put it in your Pandora.
At any step especially the downloading one the user has the opportunity to decide no, lot better than a password.
Given the fact auto or not, you intend to run it anyway.
Anyway thanks for pointing out the discussion is no further along than the other times.

#47 skeezix

skeezix

    Mega GP Mania

  • GP Guru
  • 5088 posts
  • Gender:Male
  • Interests:Blog: http://www.rjmitchell.ca/~jeff/blog2009/

Posted 13 November 2009 - 04:28 PM

About the "executable directories" (a directory containing a pxml)... I'd just like a little clarification. Say I'm developing something for the pandora and have an svn repository to host my code. If I have a pxml file in the svn trunk, it gets recognized as an executable directory? So basically to use the svn version I'd just need to checkout the repository to an sd card? It shows up in the menu just like any pnd? Of course the makefile would have something like "make pnd", but this sounds great for development. Yes I know cross-compiling is the way to go most of the time. Think something like python development.

I'm really liking this. :)

(sorry for the incoherent post, I'm a bit tired :) )


Oops, didn't see this one.. catching up on thread again :)

pndnotifyd has a configurable search-path; if those paths (or their children) have PXML.xml-dir-apps in them, they will be recognized and can generate .desktop apps (or be run from other libpnd using launchers.)

For dev, you'd just build it locally and run it on your desktop/whatever, and then build an ARM version with a cross-compiler, pack itg up into a PND (or drop the PXML-dir) onto SD and good to go. On the pandora itself, you can just run pnd-run.sh directly to invoke the pnd or PXML-dir, or use a pnd-run binary tool like this: pnd-run /path/to/my/app/foo.pnd -> and bam, runs.

Its all cake :)

jeff

#48 skeezix

skeezix

    Mega GP Mania

  • GP Guru
  • 5088 posts
  • Gender:Male
  • Interests:Blog: http://www.rjmitchell.ca/~jeff/blog2009/

Posted 13 November 2009 - 04:31 PM


how deeply is it integrated in xfce? will pnd'd apps also show up in the proper xfce-menu (or a replacement plugin) categories?

Would be cool to have something like a "desktop"-tag that specifies if an app should be displayed on the desktop or just in the menu.

As far as I know the libraries are set up to create standard .desktop files, so I think it would be pretty easy to write something to integrate them into the system menu too.


PXML.xml names a category; libpnd looks up the category in a config file that maps it to a .desktop standard category, and notes that in the .desktop file. Thus apps can show up in the appropriate category and the desktop managers can do what they like with them - show them on desktop, in windows, in menus whatever. In practice, I think most desktops watch one set of dirs for menus, and another set of dirs for windows/desktop, but it varies by desktop manager and I'm not sweating it :) (One can also override the categor in the PXML, and one could browse over to a dir with PND apps and run them thataway..)

jeff

#49 dflemstr

dflemstr

    It's a ball.

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 2249 posts
  • Gender:Male
  • Location:Stockholm, Sweden

Posted 13 November 2009 - 04:31 PM


About the "executable directories" (a directory containing a pxml)... I'd just like a little clarification. Say I'm developing something for the pandora and have an svn repository to host my code. If I have a pxml file in the svn trunk, it gets recognized as an executable directory? So basically to use the svn version I'd just need to checkout the repository to an sd card? It shows up in the menu just like any pnd? Of course the makefile would have something like "make pnd", but this sounds great for development. Yes I know cross-compiling is the way to go most of the time. Think something like python development.

I'm really liking this. :)

(sorry for the incoherent post, I'm a bit tired :) )


Oops, didn't see this one.. catching up on thread again :)

pndnotifyd has a configurable search-path; if those paths (or their children) have PXML.xml-dir-apps in them, they will be recognized and can generate .desktop apps (or be run from other libpnd using launchers.)

For dev, you'd just build it locally and run it on your desktop/whatever, and then build an ARM version with a cross-compiler, pack itg up into a PND (or drop the PXML-dir) onto SD and good to go. On the pandora itself, you can just run pnd-run.sh directly to invoke the pnd or PXML-dir, or use a pnd-run binary tool like this: pnd-run /path/to/my/app/foo.pnd -> and bam, runs.

Its all cake :)

jeff

If enough people are interested, I guess that a kernel .pnd binfmt would be cool, so that .pnds could be executed directly like normal applications.

#50 skeezix

skeezix

    Mega GP Mania

  • GP Guru
  • 5088 posts
  • Gender:Male
  • Interests:Blog: http://www.rjmitchell.ca/~jeff/blog2009/

Posted 13 November 2009 - 04:33 PM

There's a lot of griping about perceived security issues over on Pandorapress.

Wouldn't most potential security concerns be covered by only allowing a .pnd to write to (and even read from) its /pandora/appdata/<appid> directory? (not sure if this is already the case)

In that case, an app can only mess with its own files and can't affect other apps or data.

The worst a malicious .pnd could do would be to spoof the ID of another app to try and break that one app's data, but even that might not be totally successful as there are probably other problems caused by an ID collision (such as the archive's loopback mapping). Maybe pndnotifyd can issue an alert if duplicate IDs are detected.

If an app needs access to external files (such as a ROM collection), you can symlink the external directory under its appdata directory. This would sensibly be done after you've tested the app, so in effect you're manually granting permission to a specific file location. I'd argue that's more secure than blanket password or executable-bit access.


Not really feasible .. ie: consider an emu.

You probably do something like..

Keep SNES roms on the other SD card, or perhaps in a /rom dir on both or one card.

Put the pnd app in /pandora/apps on one of the cards; quite likely could have 2 or 3 different SNES emus, if current handhelds are an indicator.

So each emu would be its own app, and probabyl reads/writes to its whole conf files and such (which would be in their appdata folder.) But you'd instruct them to look in you /roms folder (say), to actually find the roms. This way 3 emus coudl share the same ROMs, but have their own private appdata folders.

That said, the security gab over there is mostly a farce; but check all my comments over there.

jeff

#51 skeezix

skeezix

    Mega GP Mania

  • GP Guru
  • 5088 posts
  • Gender:Male
  • Interests:Blog: http://www.rjmitchell.ca/~jeff/blog2009/

Posted 13 November 2009 - 04:37 PM

So you download a PMD, with the sole purpose of executing it, place it on an SD card, put it in your Pandora.
At any step especially the downloading one the user has the opportunity to decide no, lot better than a password.
Given the fact auto or not, you intend to run it anyway.
Anyway thanks for pointing out the discussion is no further along than the other times.


Also note that the pnd file is never auto-run, not ever (dunno where that idea came from.) They are 'auto discovered', which is to say, they are found and possibly show up on your desktop or in menus magicly, with no work from the user. This is not the pnd being run, as there is no installation whatsoever. So there is auto-find, but no auto-run.

You still have to run it yourself, and like anything you download .. you download it from an unrepiutable location, on any OS, you should take your caution :) That said, its pretty easy to snapshot your pandora, restore it from an image, etc.. its not like you need a 4 hour Win 7 reinstall plus installing all your apps :)

jeff

#52 Na-Noo

Na-Noo

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1003 posts

Posted 13 November 2009 - 04:44 PM


So you download a PMD, with the sole purpose of executing it, place it on an SD card, put it in your Pandora.
At any step especially the downloading one the user has the opportunity to decide no, lot better than a password.
Given the fact auto or not, you intend to run it anyway.
Anyway thanks for pointing out the discussion is no further along than the other times.


Also note that the pnd file is never auto-run, not ever (dunno where that idea came from.) They are 'auto discovered', which is to say, they are found and possibly show up on your desktop or in menus magicly, with no work from the user. This is not the pnd being run, as there is no installation whatsoever. So there is auto-find, but no auto-run.

You still have to run it yourself, and like anything you download .. you download it from an unrepiutable location, on any OS, you should take your caution :) That said, its pretty easy to snapshot your pandora, restore it from an image, etc.. its not like you need a 4 hour Win 7 reinstall plus installing all your apps :)

jeff

Sorry I knew all that and still worded it badly :)
But yea, you download something with the intention of running it, passwords, click here to confirm makes no difference. Person isn't going to think at that time, oh I'm glad it asked I've now changed my mind. lol

Edit : I'm glad you clarified it, my wording was misleading at best, even if the message itself wasn't

Edited by Na-Noo, 13 November 2009 - 04:48 PM.


#53 skeezix

skeezix

    Mega GP Mania

  • GP Guru
  • 5088 posts
  • Gender:Male
  • Interests:Blog: http://www.rjmitchell.ca/~jeff/blog2009/

Posted 13 November 2009 - 04:45 PM

Didn't direct that at you, no worries; just put that out there to be clear for anyone else whose reading :)

jeff