How to run chrome in app mode without window frame?

8

1

I would like to run chrome in app mode without using a windows frame and the title bar?

At the moment I start chrome in this way: chrome.exe --app=http://url.com --app-shell-host-windows-bounds. That works but there is still the window frame with the title frame visible. The user should not have the opportunity to close, maximize or minimize the chrome window. Furthermore I want to have special size for the chrome browser. But the switch --app-shell-host-windows-bounds does not have any effect with the size e.g. 600x1024 or 1024x600.

How can change the size of the browser window with this switch?

Irgendw Pointer

Posted 2014-09-05T09:14:45.817

Reputation: 251

Answers

2

Developers have madness if allow "The user should not have the opportunity to close, maximize or minimize the chrome window. ". But it possible do it with external tools(i don't will say how).

You can set size and position with this command line:

--window-size=1024,600
--window-position=600,600

Here more info.

Chromium command line switches

crazypotato

Posted 2014-09-05T09:14:45.817

Reputation: 678

Did you try this switch? I'm afraid but they are not working. – Irgendw Pointer – 2014-09-08T05:29:54.187

@Irgendw Pointer Working but need fully exit Chrome before try it. Switch --chrome-frame don't work for me. With this switch should work even with running Chrome, if i understand correctly from previous link. Can you show your full command line? – crazypotato – 2014-09-08T13:13:23.963

That works neither! C:\Program Files (x86)\Google\Chrome\Application>chrome.exe --app=http://www.sta ckoverflow.com --windows-size=800,600 – Irgendw Pointer – 2014-09-08T13:21:14.867

@Irgendw Pointer If link contain spaces you need add quotes. chrome.exe --app="http://www.sta ckoverflow.com" --windows-size=800,600 – crazypotato – 2014-09-08T13:36:15.613

There are no spaces, thats a copy paste error. But the windows-size is always the same. – Irgendw Pointer – 2014-09-09T06:15:34.840

@Irgendw Pointer Did you try add switch --user-data-dir or --chrome-frame from previous link? If this don't work only way make page with javascript with button for popup window (Chrome block all popups by default). But i repeat --window-size= work on my Windows 7 in Chrome portable and SRWare Iron.

– crazypotato – 2014-09-09T18:10:57.777

worked on normal windows thx! but unfortunately didnt work with --kiosk, I had to use this trick http://askubuntu.com/a/320660/46437

– Aquarius Power – 2015-05-26T22:03:14.297

0

I use this script to start chrome without any bar visible (title, tools, url...) on my left screen:

@echo off

set CHROME_EXE=c:\Program Files (x86)\Google\Chrome\Application\chrome.exe

set CHROME_SETTINGS=
set CHROME_SETTINGS=%CHROME_SETTINGS% --window-position=-1928,-30
set CHROME_SETTINGS=%CHROME_SETTINGS% --window-size=1936,1050
set CHROME_SETTINGS=%CHROME_SETTINGS% --app=http://10.67.213.20:8080/left.html

start "" "%CHROME_EXE%" %CHROME_SETTINGS%

Aubin

Posted 2014-09-05T09:14:45.817

Reputation: 184