[SOLVED] How do I play .mp3 in mocp by clicking on it in the file mgr?

I'm running Openbox and PCmanFM.
I'm using Sakura as my terminal.
I've set up a ~/.local/share/applications/mocp-usercreated-0.desktop as:
[Desktop Entry]
Encoding=UTF-8
Name=mocp
Exec=/usr/bin/sakura -e '/usr/bin/mocp -T white_on_black'
MimeType=audio/mpeg
Icon=exec
NoDisplay=true
and my ~/.local/share/applications/defaults.list is:
[Default Applications]
audio/mpeg=mocp-usercreated-0.desktop
but when I open PCmanFM, navigate to my Music directory and click on any .mp3 file it doesn't work.
Can anyone tell me what I need to do?
Last edited by PingPing (2009-10-30 19:55:41)

Thanks Liquid.  What you suggested didn't quite work but it got me thinking.
I took what you suggested, played around with it and eventually solved the problem with the following mocp-single.sh script:
#!/bin/sh
/usr/bin/mocp -cap $1 & /usr/bin/sakura -e '/usr/bin/mocp && killall mocp'

Similar Messages

  • How to extract an mp3's url from m3u playlist (and download the file)?

    hello!
    I've managed to get automator to retrieve (and save to hdd) an .m3u playlist from a radio's website that broadcasts a program I like in mp3.
    inside this m3u playlist is the link an actual mp3... both the m3u and the mp3 change every week.
    If I drag the m3u to TextEdit it opens up and I can see the 3 lines of "source code" of which the last line is the full url of the mp3 file (http://www.thatradiosurl.com/audio/shownumber.mp3)
    My question is as follows: how do I get automator to 'extract' that url and save that file to my hard drive (so I can automatically add it to a playlist in itunes (and retrieve the show on my ipod at sync))??
    I'll save the final workflow as an iCal event that will hopefully grab this show every week.
    before you ask... no, that show is not available as a podcast! I wish it were... I think they're a bit slow on catching up with the tech.
    thanks to all!
    have a great day
    d
    pbg415"1.67   Mac OS X (10.4.6)  

    Hi!
    You might have seen this post in the Automator part
    of the forum... but I might have posted it in the
    wrong place (got no interest:( )
    I've managed to get automator to retrieve (and save
    to hdd) an .m3u playlist from a radio's website that
    broadcasts a program I like in mp3.
    inside this m3u playlist is the link to an actual mp3
    file... both the m3u and the mp3 change every week.
    If I drag the m3u to TextEdit it opens up and I can
    see the 3 lines of "source code" of which the last
    line is the full url of the mp3 file (http://www
    .thatradiosurl.com/audio/show-shownumber.mp3)
    You already got the playlist into a text file, you have two options:
    1. use Automator's 'Get Link URLs from Webpages' action to extract the URL. 'Get Link URLs from Webpages' is under Safari lib.
    2. run Automator Python script from 'Get Link URLs from Webpages' in AppleScript. The script below with get your mp3 URLs:
    set playlist_file to "/path/to/playlist/file.txt" -- change to your actual playlist file path
    set _URLs to do shell script "/System/Library/Automator/Get\\ Link\\ URLs\\ from\\ Webpages.action/Contents/Resources/links file://" & quoted form of playlist_file
    set mp3_URLs to ""
    repeat with _URL in paragraphs of _URLs
    if _URL contains ".mp3" then set mp3_URLs to mp3_URLs & _URL & (ASCII character 10)
    end repeat
    mp3_URLs is the list you want you extract.

  • I cannot upload my iMovie video to Facebook, etc. I cannot even attach it to an email, an 'error' message comes up when almost complete. It plays fine in imovies, VLC, mplayerx. Confused, is the file damaged somehow?

    I cannot upload my iMovie video to Facebook, etc. I cannot even attach it to an email, an 'error' message comes up when almost complete. It plays fine in imovies, VLC, mplayerx. Confused, is the file damaged somehow?

    The Deskjet series printers connect to wireless networks with what is called USB to Wireless.
    You will need a supported operating system to connect a Deskjet to a wireless network.  Supported operating systems to connect the printer to a wireless network are Windows 7 (32bit and 64bit), Windows Vista (32bit and 64bit), and Mac OS X (10.5, 10.6, and 10.7).  
    While there is a software download option for Linux distributions, this is not the full featured software that is capable of adding the printer to a wireless network.  Most printers have a wireless setup wizard to accomplish this task, but the Deskjet series printers connect in a different way.
    Once the printer is connected to a wireless network,  HPLIP 3.12.4 drivers should be able to locate the printer.
    Click on Installing the Product Software for a Wireless Network Connection to receive instructions to connect to a wireless network using Windows and Mac operating systems.
    Click on Software & Driver Downloads - HP Deskjet 3070A e-All-in-One Printer - B611a to download the appropriate software for a supported operating system to connect to a wireless network.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Can someone please tell me on how to modify this code so that I dont have to enter the file name at all?

    Hello
    can someone please tell me how to modify this code so that I dont have to enter the file path at all? When i give the same file path constants to both the read and write VIs I'm getting an error message.
    Attachments:
    read and write.vi ‏11 KB

    Yup use the low level File I/O opening the reference once, and closing it once.  
    As for the path selection you have an unwired input which is the path to use.  Programatically set that and you won't be prompted to select a path.  Usually this is done with a path constant to a folder, then using the Build Path, to set the file name in that folder.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • How to erase an app from de Launchpad if I already erased the files and tried to move it to the trash?

    How to erase an app from de Launchpad if I already erased the files and tried to move it to the trash?

    Erased what files? You say "tried" to move it to the trash... I assume that means that you were not successful?
    Removing an app from LaunchPad requires deleting the app. In general, if you're trying to delete an app that was installed from the App Store, simply open the LaunchPad, click and hold on the app icon in the LaunchPad until all the icons start "wiggling," and then click the 'X' at the top left corner of the app's icon. If the app was not installed from the App Store, you need to use whatever uninstaller was provided by the developer of that app.

  • [solved] I can't play MP3 files in JuK

    Hi
    When i try play a mp3 file, with juk, the system says this:
    [zuargo@zuargo-archlinux ~]$ juk
    [zuargo@zuargo-archlinux ~]$ xine is asking to seek behind the end of the data stream
    I have installed xine-phonon and it is uses default.
    I have tried installing gstreamer phonon (with all official of the repository plugins) but I have the same problem... I can't hear anything...
    I have tried installing pulseaudio but... nothing...
    I have tried installing oss but.... nothing
    I have tried erasing the file ~.xine/catalog.cache but... nothing...
    some web pages says solved it issue installing a package called libxine-ffmep but it is not in pacman...
    really I tried many options but I can't solved this problem
    of course, I can play mp3 files in the command line (throughout mpg123) and they sound good...
    sorry for my bad english I speak spanish
    Last edited by zuargo (2009-08-25 02:20:27)

    AdrenalineJunky wrote:
    from everything i'm reading, it seems like that error message is normally associated with xine-ffmpeg being missing...
    phonon-xine depends on xine-lib which depends on ffmpeg, but its probably worth checking to make sure they are installed.
    I have installed xine-lib
    Rasi wrote:Since there doesnt seem to be an obvious solution, simply use the gstreamer backend.
    I have used the gstreamer backend and it not works... I can't hear the mp3 files...
    another idea?

  • [solved] dolphin do not play mp3 in sidebar

    As i navigate to my music-folder and mark an mp3-file, dolphin shows on the seidebar a little player with some extra information like Typ or Tags. But if i trie to play this file with the button, nothing happens. If i try to move forward within the file with the slider, i could only move the entire window.
    Maybe i miss a package?
    qmmp plays all files well.
    Last edited by quiqueck (2013-05-09 16:32:55)

    Check in System Settings > Multimedia if phonon outputs sound. Check if amarok or dragonplayer play mp3 files. If you're using phonon-gstreamer, you need gstreamer0.10-ugly-plugins to decode mp3 files.
    Last edited by lucke (2013-05-09 16:18:08)

  • How can I play an album in order on my iphone?  The shuffle is turned off both on the phone and when the phone is sync'd but it continues to shuffle.

    How can I play songs from an album in order on my iphone 4?  The shyuffle is turned off both on the phone and on the device when I sync the phone with my iMac but it continues to shuffle.  All the songs in the album have been checked in iTunes.

    Bill, you ignorant moron.  Turn off the ultra secret hidden shuffle diabolically placed behind the album cover.  Just tap the album cover to expose the sinister little shuffle icon on the right.  Is it blue?  Well, tap it until it is no longer blue! Also, make sure you are in your playlist and not the genius playlist. 
    Hope this helps!  Now, who's ready for ice cream?  Or do  you want to "shyuffle" some more, you weirdo?!?

  • How to create play all actions in one Click

    Please help

    The first action in that action set play the rest of actions in that action set it does not play all actions. That would require a Photoshop script to retrieve all the loaded action sets and do the action in each. Why would you want to run random actions.
    That first action in the set was the last action recorded in the action set. Started with a make snapshot named normal then select that snapshot then play the next action in the set, The select snapshot normal and play next action is repeated till the rest of the action in the set have been played. Then a stop message is displayed.  The other actions in the set make a group add their effect and make a snapshot.  If you uncheck the stop step you could even batch this action, The stop would stop the batch process.
    Just expand the actions and action steps and read the steps. Actions are easy to record and edit. The action palette is a full function action editor. You can single step and edit at the same time.  Reading action is a good way to learn how to use Photoshop and you will know if an action is going to destroy work you have dons on a document like flatten you work.
    Crafting Actions Package
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    12 Scripts for actions
    Example
    Download

  • How do i play skylanders on my i pad 3 like on the tv advert it says i need adobe flash which it doesn't support?

    How do i play skylanders like on the advert on my i pad 3.It says i need adobe flash which it doesnt support. It shows you on the the advert putting the skylander on to the i pad and it all coming to life. Anyone know?

    I too am trying to use the Wii portal of power with the iPad.  No luck.  I just found this on the app store:
    Bring the Skylanders to life in two ways:
    • Connect the new Bluetooth Portal of Power (optional accessory) to your device and bring your collection to life instantly. Swap them out during battle to win tough battles and leverage their unique powers.
    Guess they want more of our money.  Not finding it anywhere to buy though

  • How do you play an album from start to finish without mixing the songs?

    I may be old-fashioned, but I want to play my albums from start to finish without having the songs mixed. I have tried almost anything, but it kips jumping randomly from song to song on an album. Extremely annoying if you are listening to a concept album like Berlin by Einstürzende Neubaten!!

    Either I am a complete idiot (which could be :-D ), or I have done something that disables the functions you are describing. I have taken screenshots of available menus on my iPhone:

  • If I add a .mp3 - Do Visitor need QT Pro to download the file?

    This is actually the question.
    I create a page where visitors should be able, to
    1. listen direct to the file (solved this adding a flashplayer)
    2. subsuscribe to a podcast (solved with lemonz dream podcast maker) and last
    3. Download the file direct
    so, if Visitors want to do point 3. Do they need the ProVersion? Do I have to make a .zip and add this also to the side.
    Thanks Martin

    Create a link to the MP3 and tell the vistors to save the file. Add the words +Right-click to save+.
    Or create a zip file and link to it. Clicking the link will usually download the zip file. Hopefuly they know how to unzip it.
    Or ignore these solutions and just tell them to subscribe to your podcast.

  • How do I merge two accounts into one account that contains all the files from both?

    When I was running my MacBook Pro under Snow Leopard, I had one account for business that was encripted and another account that was unencripted for personal.  Now, under Lion, the whole disc gets encripted so I don't really need two acounts.  How do I merge the accounts together into one account and retain all the files from both?
    Thanks,
    Dave

    Somethinkg like these?

  • How do I get my project back? I closed it in the File window.

    I closed my project in the file window, and I accidently saved and closed premire pro. When I opened it again, all my video clips and other stuff was there, but none of my edited work. How do I get it back?

    Sequence will still be in the Project Window.
    You just saved a Project with the sequence closed.

  • How can I play MP3 files with time capsule on a stereo set?

    Hello,
    Can anyone offer ideas/suggestions how to play my mp3 files (itunes) from a Time Capsule device? I use a plain Philip 5.1dts set. I would like to be able to select music with either my iphone, ipad ir macbook.
    thanks, Anton

    You will need to add an Apple - AirPort Express to be able to stream your iTunes data to your amp/speaker setup.

Maybe you are looking for

  • Can I share purchased ibooks between family members?

    My daughter and I have ipads and I'd like to share ibooks...is this possible?

  • File://localhost/ Issue Itunes Can't Find My Music.

    I recently upgraded my old hard drive on my computer so after removing the old one and turning it into an external hard drive I have issues with Itunes finding my music files. The files are always in file://localhost/c:/.... is there anyway to get ri

  • GREAT problem with C6-00 General keypad PLEASE ATT...

    Hello I just bought my new c6-00 nokia mobile, i realized on openning the general keypad from the home screen (in touch mode) and then choosing options > open keyboard that i cant switch to more characters except the main character of the button Ex:

  • OWSM user name token service policy for a proxy service at OSB

    Hi Friends, I am facing an issue while trying for the OWSM user name token service policy Authentication for a proxy service at OSB. I am using the PS4 SOA suite with AIA foundation pack. very first I am login into the EM console and choose the domai

  • How to install Taskman in E: ?

    Most appls give me the choice to select what drive i want to install, but Taskman and some others do not. Is there anything i can do to force them to be installed on E: ? ( like ini file or anything else ). Thanks. N97 RM-507 code 0575400 / 0580761 f