Release pnd_utils

Discussion in 'Software Releases' started by Jey123456, Mar 31, 2011.

  1. Jey123456

    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: May 23, 2011
    Tags:
  2. Esn

    Esn (:";

    Joined:
    Mar 5, 2003
    Messages:
    3,239
    Location:
    Toronto, Canada
    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...
     
  3. xopher

    xopher Member

    Joined:
    Aug 21, 2008
    Messages:
    263
    Location:
    Where I am
    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: Mar 31, 2011
  4. Jey123456

    Jey123456 Member

    Joined:
    Dec 22, 2009
    Messages:
    228

    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.
     
  5. Jey123456

    Jey123456 Member

    Joined:
    Dec 22, 2009
    Messages:
    228
    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: Apr 1, 2011
  6. Jey123456

    Jey123456 Member

    Joined:
    Dec 22, 2009
    Messages:
    228
  7. Jey123456

    Jey123456 Member

    Joined:
    Dec 22, 2009
    Messages:
    228
    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.
     
  8. Nintendo

    Nintendo Nintendo Switch

    Joined:
    Oct 8, 2005
    Messages:
    12,515
    Location:
    Melbourne, VICTORIA - AUSTRALIA
    Thanks for this Jey. It's useful to me. Cheers. :)
     
  9. alerino

    alerino Well-Known Member

    Joined:
    Aug 11, 2007
    Messages:
    3,200
    Jey, found a bug, confirm please, if there are spaces in 'file name example.doc', pnd_assoc will open 3 abiword instances


    am i doing something wrong?
     
  10. Jey123456

    Jey123456 Member

    Joined:
    Dec 22, 2009
    Messages:
    228
    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.
     
  11. Esn

    Esn (:";

    Joined:
    Mar 5, 2003
    Messages:
    3,239
    Location:
    Toronto, Canada
    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:


    [​IMG]


    The instructions for pnd_assoc are:

    Those instructions seem tailored for Thunar rather than BeeSoft, though; I can't right-click on a file.
     
    Last edited by a moderator: Feb 6, 2016
  12. Jey123456

    Jey123456 Member

    Joined:
    Dec 22, 2009
    Messages:
    228
    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: Nov 2, 2011
  13. Abaddon666

    Abaddon666 Member

    Joined:
    Sep 28, 2007
    Messages:
    95
    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.
     
  14. Jey123456

    Jey123456 Member

    Joined:
    Dec 22, 2009
    Messages:
    228
    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
     
  15. hmc

    hmc Active Member

    Joined:
    Dec 19, 2011
    Messages:
    786
    Location:
    Bavaria, Germany
    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
     
  16. ssokolow

    ssokolow Member

    Joined:
    May 24, 2012
    Messages:
    241
    Location:
    Ontario, Canada
    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: Feb 6, 2016
  17. Palmiga

    Palmiga Member

    Joined:
    Oct 18, 2010
    Messages:
    93
    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:
     
  18. Palmiga

    Palmiga Member

    Joined:
    Oct 18, 2010
    Messages:
    93
    Who can help me?
     
  19. ssokolow

    ssokolow Member

    Joined:
    May 24, 2012
    Messages:
    241
    Location:
    Ontario, Canada
    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)
     
  20. skeezix

    skeezix Internal Development

    Joined:
    Mar 11, 2003
    Messages:
    8,060
    FYI next firmware (soon!) has pnd file association working .. devs need to put association mime types in their pxml and good to go

    skeetablet
     

Share This Page

Loading...