Play file(s)/Folder with Right-Click

How many times you wished to simply right-click a file/folder and select to play the media with mplayer on the terminal. Well I do often and I was tired to open the terminal , copy the name ,type mplayer., paste name…. press enter..

  • System info____________________


sudo apt-get install mplayer

  • Commands____________________

  • sudo apt-get install nautilus-actions
    mkdir ~/bash_scripts
    cat >~/bash_scripts/
    cd "$2"
    mplayer "$1"
    mplayer "$1/"*
    <press  Enter>
    <press Cntrl +d>
    chmod +x ~/bash_scripts/
    1. define new action with name: play all
    2. Select Action tab and check “Display Item in selection context menu” and “Display Item in location context menu”. Make sure “Enable” is checked
    3. Select Command tab, and in the PATH field put: gnome-terminal. In the PARAMeters : –command=”~/bash_scripts/ %f %d”
    4. Select Conditions tab. Check that “both” and “Appears if selection has multiple files or folders” are checked.
    5. Select Advanced conditions, and check all the entries.
    6. Select File>Save

    Logout-Login and right-click select on folder(s) (containing music files), or files and play them.


    Leave a Reply

    Fill in your details below or click an icon to log in: Logo

    You are commenting using your account. Log Out /  Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out /  Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out /  Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out /  Change )


    Connecting to %s