Open google chrome from terminal1/7/2023 REM -window-size: specify the width and height of the new window. REM -user-data-dir: a custom directory that stores the configuration of your new options (window-size) REM -chrome-frame: specifies that the website should be opened in a single frame, without tabs. We would simply change the -user-data-dir to a custom directory that we will create in the desktop in this case, specify a framed window using the -chrome-frame flag and the URL with -app: REM where: Now, let's explain what you came for, ideally, the command should just open a new URL in a window with a custom size. This can be changed with the -user-data-dir flag on the command. Each profile is a subdirectory (often Default) within the user data directory. The user data directory contains profile data such as history, bookmarks, and cookies, as well as other per-installation local state. ![]() This happen because we're not changing the default user-data-dir property on the command as well. ![]() Pitifully, with a default installation of Chrome, when it starts, it will have the last window size that the last user had, not the one we're specifying on the command ð¤. If you read carefully the documentation of Chromium or use a list of all the options that you can setup on Chromium in the command line, you will quickly find that you can launch Chrome (chromium) with a specific window size using the -window-size flag, for example, to open chrome with a custom size, you would simply run the following command in the command prompt: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -window-size=800,600 Before proceeding with the solution, we need to understand the problem.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |