kiosk mode and window resizing

7,553 views
Skip to first unread message

ver...@uymail.com

unread,
Feb 3, 2019, 4:55:12 AM2/3/19
to chromium...@chromium.org
Hello Everybody,

I'm experiencing some troubles with chromium kiosk mode. I'm running Linux (Debian 9, kernel 4.9.0-8-rt-amd64). The chromium version is 71.0.3578.80.
It seems that something doesn't work if I use --kiosk and --window-size and --window-position flags togheter.
Running "chromium --kiosk", everything is ok. The toolbars disappear and I can see my html page without problems.
The same happens if I run "chromium --window-size=640,400 --window-position=0,0". The window is cutted but with the arrows and the sliding tabs I can navigate on the page without problems.
The problem appears if I run "chromium --kiosk --window-size=640,400 --window-position=0,0". As you can see in the attached images, the lower arrow is missing and is not possible to see the bottom side of the html page.
Is there a way to solve this problem ?
I saw also that is not possible to go under 520px of width. Is there some limitation ?

PS... my screen resolution is 640x480. The PC panel is a 16:9 type and the image is stretched with the following command:
xrandr --output $DISPLAY_NAME --set "scaling mode" "Full"

Jim
chromium --kiosk.png
chromium --kiosk --window-size=640,400 --window-position=0,0.png
chromium --window-size=640,400 --window-position=0,0.png

Jon Perryman

unread,
Feb 6, 2019, 1:30:10 PM2/6/19
to ver...@uymail.com, Chromium-discuss
Specifying --kiosk and --window-size is wrong and doesn't make any sense. You are saying fullscreen window and non-fullscreen window at the same time. Your results look correct because chrome couldn't resize the xWindow window. I'm guessing that the last screen shot with only the window parms has the desktop being displayed at the bottom of the window.

In a kiosk app, I would specify the size on a div. This would also allow you tailor the bottom of the screen from your web page instead of having chrome choose an arbitrary method for handling this area.

Good luck, Jon.

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
    http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

ver...@uymail.com

unread,
Feb 9, 2019, 11:42:35 AM2/9/19
to Jon Perryman, Chromium-discuss
Hi Jon,
 
thanks for your reply. In the while I discovered that kiosk mode was not the right choice for me.
The correct flag to be used was --app :
chromium --window-size=460,350 --window-position=80,100 --app=http://127.0.0.1/cgi-bin/photos.pl
In the attached screenshot you can see a jpeg image displayed over my application's interface. Also there is no more the size limitaion (maybe because it depends from the X window size).
In my previous email the white screen on the bottom was the result of the xterm command (I don't have desktop environment (GNOME or KDE or similars)).
 
Jim
 
 
Sent: Wednesday, February 06, 2019 at 4:08 AM
From: "Jon Perryman" <jon.pe...@gmail.com>
To: ver...@uymail.com
Cc: Chromium-discuss <chromium...@chromium.org>
Subject: Re: [chromium-discuss] kiosk mode and window resizing
Pict.png

Jon Perryman

unread,
Feb 9, 2019, 3:03:05 PM2/9/19
to ver...@uymail.com, Chromium-discuss
Hi Jim,

I assume you are saying that --app fixed your problem. Your snapshot does not show a scroll bar. App mode runs the page as a window and should not have the scroll bar problem.

If you truly want a web app, then specifying size might not be what you are looking for. The user may want to resize and retain that size and position when restarted.

Another method to create a web app is "create shortcut" which can be found in "more tools" or on the default chrome google search page. Once the shortcut is defined, go to chrome://apps and right mouse click on the chrome shortcut. Selecting "open in window" will give you an app type of window without the browser stuff. "create shortcut" will allow you to create a real shortcut on the desktop and start bar.

MS Windows and Xwindows will always have a desktop (unless running headless but that's not what we are talking about here). You mentioned that you don't have a desktop environment (e.g. kde or gnome) which does not affect windows. MS Windows equivalent is "explorer" which can be killed to produce the same effect. Eliminating the desktop environment makes it difficult to start programs that create a new windows (e.g no start bar, no screen shortcuts and fewer keyboard shortcuts).

Good luck, Jon.
Reply all
Reply to author
Forward
0 new messages