Do more on the web, with a fast and secure browser!

Download Opera browser with:

  • built-in ad blocker
  • battery saver
  • free VPN
Download Opera

Trying to use -remote but not being successful

  • On one of my older Linux boxes that is still running Opera 12.00 I use the following command in a script to kick off a new Opera window and display an HTML file (script is run from my mail program):
    opera -remote "openURL(file:${tmpdir}/${tmpfile}.html, new-window)"

    I'm in the process of setting up a newer Ubuntu machine that is running Opera 28.0 and the same script as above results in Opera opening a new tab with a message indicating "This webpage is not available." Three issues really:

    1. A new tab is opened instead of a new window
    2. The Opera window is not raised
    3. The HTML file is not opened

    I changed my script to instead use the following command to invoke Opera:
    opera -newwindow file:${tmpdir}/${tmpfile}.html

    This corrects issue (3) above (the html file is now actually opened), but issues (1) and (2) above are still present. Are there a new set of commands with the Chrome based Opera which will allow me to alleviate all three of issues listed above?