Results 1 to 8 of 8

Thread: Choosing "open with" executible file

  1. #1
    Join Date
    Jul 2010
    Beans
    4

    Choosing "open with" executible file

    Hi All,

    I'm learning a day at a time. I like to listen to streaming classical music from FM websites. When trying to listen to the mp3 version, Firefox asks which program I want to open the file with. I want to listen using VLC. Is there an easy way to choose the program I want to use to listen to a music stream?

    In Windows I would have navigated to vlc.exe in the Programs folder under Windows.

    Thanks!

    Ninlama

  2. #2
    nmaster is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Jun 2009
    Beans
    718

    Re: Choosing "open with" executible file

    you do basically the same thing in ubuntu. just find where the vlc executable is. if you're not sure, go to a terminal issue this command
    Code:
     which vlc

  3. #3
    Join Date
    Jul 2010
    Beans
    4

    Re: Choosing "open with" executible file

    That works great. Thanks for your help!!!!!

  4. #4
    nmaster is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Jun 2009
    Beans
    718

    Re: Choosing "open with" executible file

    another lesson (lol): be sure to tag the thread as SOLVED!

  5. #5
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Choosing "open with" executible file

    Quote Originally Posted by Ninlama View Post
    In Windows I would have navigated to vlc.exe in the Programs folder under Windows.
    While the "which" command suggested above works really nice, you'll quickly find that pretty much for every program the executable file will be in /usr/bin. Makes sense, since that's the standard location for all executables other than system- and admin-related stuff.

    So instead of running "which" you might want to first take a quick look if you can find the executable in /usr/bin/.

  6. #6
    Join Date
    May 2010
    Location
    Here
    Beans
    1,297
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Choosing "open with" executible file

    To find a file (in your case vlc), you simply type:
    Code:
    ls folder | grep "file"
    And for your case, it would be:
    Code:
    ls /usr/bin | grep "vlc"

  7. #7
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Choosing "open with" executible file

    If you installed the mozilla-plugin-vlc it would do that within firefox and not need to start vlc as a separate application. Perhaps you prefer to have the extra control over which app is used each time.

  8. #8
    nmaster is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Jun 2009
    Beans
    718

    Re: Choosing "open with" executible file

    Quote Originally Posted by lkjoel View Post
    To find a file (in your case vlc), you simply type:
    Code:
    ls folder | grep "file"
    And for your case, it would be:
    Code:
    ls /usr/bin | grep "vlc"
    keep in mind that this requires knowing the directory where the file might be. ls is not recursive

    if you don't know where the file is, try "locate FILE" . this will search all files currently in the locate database. this database is updated automatically from time to time, but you can manually do it with "sudo updatedb"

    the best way to find an executable at the command line, however is by using which. for more information, check out the man page with "man which"

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •