Pandora pnd_run mounting problems


pmprog

DNF (Did Not Finish)
Joined
Apr 25, 2011
Messages
4,150
Okay, playing with my TwitchBox app, I've encounted a couple of things. The first is an observation which was a little annoying, but easily worked around, the second, I'm just not sure what to do.

So firstly, the command "pnd_run", and the script "/usr/pandora/scripts/pnd_run.sh" mount the SMPlayer PND to two different locations.

The former maps to "/mnt/utmp/smplayer"

The latter maps to "/mnt/utmp/package"

I just worked around this by having my script search both folders for my file. I'm not sure why this is, or if this could run into other problems.

I have to use the pnd_run.sh script because the command doesn't let me mount and unmount at will. However, whilst I was testing my PND, I got the following log:


------------------- Stream Log
URL: http://www.twitch.tv/sc2proleague
Quality: worst

WARNING Union already mounted, using it
+++++++
Loopback devices :
/dev/loop1: [b30a]:155663 (/media/Applications/pandora/menu/twitchbox.pnd)
Are mounted on :
/dev/loop1 on /mnt/utmp/twitchbox.marqwatkin type squashfs (ro,relatime)
For these Union :
none on /mnt/utmp/twitchbox.marqwatkin type aufs (rw,relatime,si=d072ce8f)

PND: /media/Applications/pandora/menu/package.smplayer2.pnd
Player: mplayer

[cli][info] A new version of Livestreamer (1.7.2) is available!
[cli][info] Found matching plugin twitch for URL http://www.twitch.tv/sc2proleague
[cli][info] Opening stream: mobile_mobile
[cli][info] Starting player: mplayer
I don't know why it won't mount - surely you can union mount more than one thing? After all, I have several PNDs running simultaneously frequently.
I guess I could just copy the SMPlayer contents from the PND into my PND, and then I wouldn't have to rely on it, but my plan is in the future is to let the user select a player. I'd be okay embedding though if necessary.
 
Don't know if that can help you, but for LayOu, the track editor for Cannonball (and before that fr the LibreOffice launchers), I had to create some scripts to find and automount a PND.

Here is the script for LayOut, looking for Cannonball.


#look for cannonball pnd
pnd_cb="cannonball_ptitseb"
#check if it exist
if [ ! -e /usr/share/applications/$pnd_cb*.desktop ];then
zenity --error --title "LayOut" --text="Error, cannot find CannonBall PND.
You need to install it first!"
exit
fi
#grab where is the pnd
pnd_path=$(sed -n 's/.*X-Pandora-Object-Path *= *\([^ ]*.*\)/\1/p' < /usr/share/applications/$pnd_cb*.desktop)
pnd_name=$(sed -n 's/.*X-Pandora-Object-Filename *= *\([^ ]*.*\)/\1/p' < /usr/share/applications/$pnd_cb*.desktop)
path_to_pnd=$pnd_path/$pnd_name
 
#automount it
echo exec /usr/bin/nohup /usr/pandora/scripts/pnd_run.sh -p $path_to_pnd -b "cannonall" -m
#exec /usr/bin/nohup /usr/pandora/scripts/pnd_run.sh -p $path_to_pnd -b "cannonball" -m
/usr/pandora/scripts/pnd_run.sh -p $path_to_pnd -b "cannonball" -m
 
#check version of PND
if [ ! -e /mnt/utmp/cannonball/init.sh ];then
zenity --error --title "LayOut" --text="Error, your CannonBall PND is too old.
Please update it!"
/usr/pandora/scripts/pnd_run.sh -p $path_to_pnd -b "cannonball" -u &
exit
fi

Also, at the end, I autounmount Cannonball, simply with


/usr/pandora/scripts/pnd_run.sh -p $path_to_pnd -b "cannonball" -u &


Hope it helps.
 
Last edited by a moderator:
Back
Top