Results 1 to 9 of 9

Thread: start firefox addons (downthemall) via terminal

  1. #1
    Join Date
    Aug 2009
    Beans
    16

    start firefox addons (downthemall) via terminal

    hi.

    i am looking for a way to start firefox and an addon via terminal.

    "firefox" starts firefox. thats easy.

    How can i get an addon to run automatically (specifically downthemall)? or is that just asking too much?

  2. #2
    Join Date
    Mar 2007
    Location
    Beginners Team IRCChannel
    Beans
    2,811
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: start firefox addons (downthemall) via terminal

    I'm a bit confused. You just want to launch both immediately, or actually download from the terminal. If the latter, see the wget command, for more info in a terminal:
    Code:
    man wget
    I don't really understand why ya'd do the former, you actually have to browse to page you want to download from before opening up the main downthemall window to select what you want to rip from the site highlighted. Opening it at launch, would simply have it set to rip from the home page or last session page which you've likely already seen no?

  3. #3
    Join Date
    Dec 2008
    Beans
    57
    Distro
    Xubuntu 8.04 Hardy Heron

    Re: start firefox addons (downthemall) via terminal

    Well, Firefox loads the add-ons at startup. Do you mean to bypass the menu selection required to display dta? My guess is that it can't be done. You seem to be asking whether you can use post-load commands from the terminal, which I can't see is possible.
    1998 Compaq Deskpro | Pentium II 350 Mhz CPU | 256 Mb RAM | 6.1Gb 33Mhz ATA Hard Drive | No sound card

  4. #4
    Join Date
    Aug 2009
    Beans
    16

    Re: start firefox addons (downthemall) via terminal

    The addon "DownThemAll" for firefox has a GUI manager. The downloads automatically start when the GUI is opened. If firefox is opened, but the GUI for downthemall isnt - the downloads wont start.

    I want to make a small program that :

    1) checks if firefox is running.
    2) if not starts firefox + DownThemAll
    3) if it is kills the firefox process.

    I want to bind this to a key, so I can have a "downloads on/off" toggle button.

    Alternatively, is there a program that can batch download links from a webpage for Firefox in Ubuntu?

  5. #5
    Join Date
    Aug 2008
    Location
    Brazil
    Beans
    12,497
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: start firefox addons (downthemall) via terminal

    Quote Originally Posted by marshall31415 View Post
    The addon "DownThemAll" for firefox has a GUI manager. The downloads automatically start when the GUI is opened. If firefox is opened, but the GUI for downthemall isnt - the downloads wont start.

    I want to make a small program that :

    1) checks if firefox is running.
    2) if not starts firefox + DownThemAll
    3) if it is kills the firefox process.

    I want to bind this to a key, so I can have a "downloads on/off" toggle button.

    Alternatively, is there a program that can batch download links from a webpage for Firefox in Ubuntu?
    1) have no idea
    2) to start the DwonThemAll manager you can use this:

    Code:
    firefox -chrome chrome://dta/content/dta/manager.xul
    This is the way of opening extensions pages using the URI. Unfortunately, it doesn't seems to work this way, like other extensions. I don't know if it has some sort of protection or if was simply because I wasn't downloading anything. Anyway, you can also set your home page as chrome://dta/content/dta/manager.xul, so whenever you start Firefox from terminal, it will start your downloads.

    3) you cannot kill firefox and keep DownThemAll running.

    What I suggest is to create a another Firefox profile, just for DownThemAll. Run the code below to launch the profile manager, from where you can create a new profile.

    Code:
    firefox -P
    Save it as "Downloads" for example.

    You can open it side-by-side with your regular profile with this:

    Code:
    firefox -P "Downloads" -no-remote
    Then install DownThemAll on it, go to the Main tab in the Firefox Preferences and set the home page as chrome://dta/content/dta/manager.xul. Select the option "Show my home page" in the "When Firefox starts" option.

    Then customize the interface to make it minimalistic, by hiding toolbars and icons for example. Then drag the download links from your regular Firefox profile window to the Downloads profile window. Close it. Start it again with:

    Code:
    firefox -P "Downloads" -no-remote
    It should open DownThemAll and start your downloads.

    The rest necessary to accomplish what you want is basically shell scripting. It shouldn't be hard to do it. Instead of killing firefox entirely, you can kill the process running each profile separately, since the -no-remote option launches a new firefox process.
    Last edited by lovinglinux; September 3rd, 2009 at 12:47 PM.

  6. #6
    Join Date
    Aug 2009
    Beans
    16

    Re: start firefox addons (downthemall) via terminal

    Quote Originally Posted by lovinglinux View Post
    1) have no idea
    2) to start the dwonthemall manager you can use this:

    Code:
    firefox -chrome chrome://dta/content/dta/manager.xul
    this is the way of opening extensions pages using the uri. Unfortunately, it doesn't seems to work this way, like other extensions. I don't know if it has some sort of protection or if was simply because i wasn't downloading anything. Anyway, you can also set your home page as chrome://dta/content/dta/manager.xul, so whenever you start firefox from terminal, it will start your downloads.

    3) you cannot kill firefox and keep downthemall running.

    What i suggest is to create a another firefox profile, just for downthemall. Run the code below to launch the profile manager, from where you can create a new profile.

    Code:
    firefox -p
    save it as "downloads" for example.

    You can open it side-by-side with your regular profile with this:

    Code:
    firefox -p "downloads" -no-remote
    then install downthemall on it, go to the main tab in the firefox preferences and set the home page as chrome://dta/content/dta/manager.xul. Select the option "show my home page" in the "when firefox starts" option.

    Then customize the interface to make it minimalistic, by hiding toolbars and icons for example. Then drag the download links from your regular firefox profile window to the downloads profile window. Close it. Start it again with:

    Code:
    firefox -p "downloads" -no-remote
    it should open downthemall and start your downloads.

    The rest necessary to accomplish what you want is basically shell scripting. It shouldn't be hard to do it. Instead of killing firefox entirely, you can kill the process running each profile separately, since the -no-remote option launches a new firefox process.

    thank you so much

  7. #7
    Join Date
    Aug 2008
    Location
    Brazil
    Beans
    12,497
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    Re: start firefox addons (downthemall) via terminal

    Quote Originally Posted by marshall31415 View Post
    thank you so much
    You are welcome. I'm glad it worked.

  8. #8
    Join Date
    May 2009
    Beans
    2

    Re: start firefox addons (downthemall) via terminal

    managed to start downthemall downloading with:
    Code:
    firefox -no-remote -chrome chrome://dta/content/dta/addurl.xul
    but is there a way to pass url to it

  9. #9
    Join Date
    Feb 2010
    Location
    White Plume Mountain
    Beans
    8,236
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: start firefox addons (downthemall) via terminal

    This thread is very old. Please start a new thread.

    Thread Closed.
    Thank you for your contributions. "So long and thanks for the fish!"

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
  •