0

I have just learned about different ways to launch a browser from the command line: How to launch default web browser from the terminal?

Still, there are more things that I would like to do with it, but how...

When I launch a certain web page from the shell script, for example:

gnome-open https://www.timeanddate.com
  1. This will open the web page in a new (browser) Tab, but I would like to launch a new browser window instead. Is that possible, and how?

  2. If the browser is not already open, it does launch a new (browser) Window. However, when I close the browser it prints ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost in the command line. How to avoid that? By the way, in 1) closing the (browser) Tab does not print any statement.

  3. It would be nice if I could close this web page from the script too. How to do that? For example: gnome-close https://www.timeanddate.com or something else...

Any suggestions are welcome, even if it is a different application. Does not have to be gnome-open. I have tried xdg-open too, same problems exist.

1
  • gnome-open may not be a future proof approach. It is not available anymore on Ubuntu 20.10. – vanadium Feb 13 at 9:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.