Release pnd_utils


Jey123456

Member
Joined
Dec 22, 2009
Messages
228
Pnd_utils is a package which for now only contain a few features, but will grow as i add stuff to it.


the first thing is pqr (pnd_quickrun). its a simple script that will run the first application in a pnd, without having to meddle with the long command line (pqr bleh.pnd) is enough.


the installer also add the mime type for application/x-pnd and the file association so that pnd get opened with pqr.


the second thing is a bit older (i made a post on that one alone a while ago, but now its part of that bundle). pnd_assoc, a script acting as a bridge between the regular os file association, and the pnd system. allowing us to keep the portability / mobility of pnd, without sacrificing the simplicity of clicking on something to open it.


To use pnd_assoc, open your file manager, right click the type of file you want to associate, open with other application. select use a custom command, and in the command type, pnd_assoc pndname.pnd. in some cases, the default runscript wont support having a file directly fed. if that happen, then pnd_assoc also support overriding the default exec script. for instance panplayer is one of those. to associate stuff to panplayer, the command is pnd_assoc panplayer ./mplayer.sh .


pnd_utils installer take care of the video association for you. its more of a tweak than a soft on that side. currently, all video formats i could think off, are linked with panplayer, (they might not all read, i dont know about that, i didnt test them all). but i figure, right now, PanPlayer is pretty much the best videoplayer the pandora has (vlc is probably more compatible if you dont mind slideshow XD).


it also include support for video streaming using regular cookie authentication (so that fileserve, hotfile, megaupload etc all work with or without an account). in combination with specially modified browser, you are able to play videos directly in panplayer, without having to save it to your sd card. (closest i could get from listening to streams, since while flash work now, its still far from stellar).


In a nutshell, any videos with a direct download link, should work (lots and lots of streaming service offer download link to their vids, megavideo for instance, often has a megaupload link in the player itself.


im open to suggestion as to what to add to the package, may that be more association support, or some completely new scripts. I can code too, but i already do enough of coding everyday. So long as the request is somehow scriptable, ill figure a way and make it happen eventually !.


download:


http://repo.openpand...l&app=Pnd_Utils


also keep in mind, while i did test it a lot on my pandora. its still a very early beta. i doubt it could make your pandy goes up in fire and burn your house with it, but im not responsible if it does happen !
 
Last edited by a moderator:
the third thing is an expansion of the second one really. for now, only panplayer is supported, but ill add support for more apps as time goes. it basicly take care of the association for you. its more of a tweak than a soft on that side. currently, all video formats i could think off, are linked with panplayer, (they might not all read, i dont know about that, i didnt test them all). but i figure, right now, PanPlayer is pretty much the best videoplayer the pandora has (vlc is probably more compatible if you dont mind slideshow XD).
Mmm, I think it would be nice if that was an option - not everyone may agree on the best media player, especially in the future... it wouldn't be too much trouble for anyone to choose for themselves, one time, I think...
 
Thanks, I'll be testing this soon. I grabbed the other app from the other post first. You might want to make an update to the first post pointing others here for your more feature packed creation?
 
Last edited by a moderator:
Mmm, I think it would be nice if that was an option - not everyone may agree on the best media player, especially in the future... it wouldn't be too much trouble for anyone to choose for themselves, one time, I think...


its already a choice. the association is a separate option from the main install. ill gladly add more players on people suggestion. I just find it useless right now to create associations file for players that can barely play 360p.
 
i just discovered about pnd_run xD (not /usr/pandora/scripts/pnd_run.sh) but a binary that do something very similar to pqr.


It make me happy because the way i used to find the pnd appdata and default exec script was hacky at best XD. this seem to use the libpnd functionality to retrieve them, sadly it doesnt seem to support commandline argument ><. so for now ill keep using my "hacky" way to get the info i need to start the pnd (tail the last mb of the binary and grep for the info in here XD). at some point i guess ill get the sourcecode for pnd_run and add argument support myself (unless its already in here but not documented, i couldnt find any way to send the arguments in pnd_run tryed just adding it after the pndname and -a but neither worked ><.)


while one would think that my hacky method will fail on most pnd... to my surprise i havent found one on which it doesnt work yet XD. hell, my firsts pnd didnt even work on the desktop but worked with pqr ! .
 
Last edited by a moderator:
updated with multiple minor bug fixes, and small improvements on the panplayer patch (start mplayer in an xterm so no more writing to the sd card causing lag when there is too much output, and you can now see if there is a problem and the % load when streaming from web.
 
ill have a look. although in theory the filename should be automaticly between "" so it should be parsed completly. might be the abiword launchscript or pnd_run that doesnt resend it correctly. ill do some test to to track the issue down.
 
Hi there... I'd like some advice for how to properly use pnd_assoc. I've recently started using Streak's port of BeeSoft Commander, which I like much better than Thunar or Xfe which I'd previously been using, but I'd not sure how to associate file types to PNDs in it. Here's a copy of my post, originally posted on GP32X:


Ok, so I need some help. I open BeeSoft, go to System->Configure->Extensions, and get this:


wP6nE.png



The instructions for pnd_assoc are:

To use pnd_assoc, open your file manager, right click the type of file you want to associate, open with other application. select use a custom command, and in the command type, pnd_assoc pndname.pnd. in some cases, the default runscript wont support having a file directly fed. if that happen, then pnd_assoc also support overriding the default exec script. for instance panplayer is one of those. to associate stuff to panplayer, the command is pnd_assoc panplayer ./mplayer.sh .

Those instructions seem tailored for Thunar rather than BeeSoft, though; I can't right-click on a file.
 
Last edited by a moderator:
I'm not familiar with BeeSoft, although, in theory, entering pnd_assoc as program path, and "panplayer ./mplayer.sh $path" without the quotes should work (might even not need the path if like many filemanager, it add it to the end when not specified).


Most pnd should work without the need of adding the override on the script, but some (like panplayer), have a gui that doesnt care for extra parameters, to find out which script to call in the pnd, you need to mount it and find for yourself.
 
Last edited by a moderator:
Hi,


I found this utility just recently and have a problem. Whenever I set a custom command using pnd_assoc, I'm asked to insert the SD card containing it. I tried different pnds and different names (e.g. deadbeef.pnd,DeaDBeeF.pnd,etc). I'm using Hotfix 7 beta 1, could this be the problem? I also tried to uninstall and reinstall it mutltiple times to no effort.
 
maybe, ive gotta admit, i havent tried it on hotfix 7 yet. maybe the location of some files changed causing it to mess up.


If i can find the time, ill try to fix it, but right now i dont
 
Hi Jey123456,


great tools!


Do you still maintain this package?


If not, I would be interested in continuing maintenance, as I have some ideas for improvements.


Could you already sort out the Hotfix7-problem reported by Abaddon?


Daniel
 
I just ran into an issue with pnd_assoc tripping over paths with spaces in them and managed to track it down to a flaw in pnd_run.sh. (Which has been mentioned before in the context of ROMs with spaces in their names)


My solution was to patch both of them so that pnd_assoc could call pnd_run.sh with -A to indicate that the contents of -a were to be quoted as one big argument.
 
Last edited by a moderator:
Pnd_assoc wont work here. Panplayer will never be found (please insert sd) and other associations wont work. I try vlc and smplayer.

@ssokolow: What did you mean with "patch both of them"?

I only want a solution for "Open with" for my pandora. :unsure:
 
Pnd_assoc wont work here. Panplayer will never be found (please insert sd) and other associations wont work. I try vlc and smplayer.

@ssokolow: What did you mean with "patch both of them"?

I only want a solution for "Open with" for my pandora. :unsure:
Patching pnd_assoc and pnd_run.sh.

The forums don't let me upload patches so here they are: https://gist.github.com/ssokolow/5125631

Sorry for the delayed reply. GMail decided forum notifications "looked spammy" a month ago and I only noticed now. (I really need to make time to set up my own e-mail hosting on my VPS)
 
FYI next firmware (soon!) has pnd file association working .. devs need to put association mime types in their pxml and good to go

skeetablet
 
Back
Top