ebpa
ebpa

Reputation: 1259

Open chrome:// URL's from the command line?

You can open a URL in chrome from the command line with:

google-chrome https://example.com

Is there a way to open chrome:// URL's (such as chrome://bookmarks/) in this manner? When I try to open a chrome:// URL from the shell, chrome simply opens an empty browser tab.

It wouldn't be surprising if Chrome simply refuses to as a matter of user protection. If that happens to be the case: where is this documented?

Upvotes: 13

Views: 8628

Answers (1)

Dan Jacobson
Dan Jacobson

Reputation: 604

2023: Worked with chrome 113, current xdotool on Debian sid:

$BROWSER& sleep 2 #Opens a new tab in your hopefully already running browser.
xdotool type --delay 111 $URL #Don't type each letter too fast!
xdotool key Return

Upvotes: 3

Related Questions