2

How can I start a web browser with no window borders and buttons?

I am thinking at something like this:

chromium-browser my-file.html --no-borders --no-tabs

In my mind this would open Chromium with no title bar, with no tabs and no buttons for close, minimize and so on.

I would need also an API for Javascript for closing, maximizing, resizing and dragging the window... For example if myFile.html contains a button when I click it, somewhere in js side will be called a function that will close the browser window.

Is there any tool?

3
  • Maybe you should look at The QtWebKit Bridge. It can give you full control over your window and expose any native functionality to your HTML-based app. Sep 29, 2013 at 17:54
  • About your second question is better ask it in Stack Overflow
    – Braiam
    Sep 29, 2013 at 17:59
  • I use Bodhi Linux, and they provide a way to change the window border for ANY window. That's wonderful. There's something to dig in their code for the ones who are interested about window-borders management through a GUI.
    – Quidam
    Apr 20, 2020 at 7:19

1 Answer 1

3

I think you are looking for --app:

--app=URL: Runs URL in "app mode": with no browser toolbars.

So, chromium-browser --app=/path/to/my-file.html should be an option.

This is how it looks like:

enter image description here

I'm using gnome3 so window has to be decorated, but I presume there is some way for unity/kde/etc.

5
  • Almost correct. But I don't need the title bar. How can I remove it? Sep 29, 2013 at 18:15
  • @Johnツ read the last line.
    – Braiam
    Sep 29, 2013 at 18:26
  • Can you please add more information about that? Sep 29, 2013 at 18:26
  • askubuntu.com/a/56927/169736
    – Braiam
    Sep 29, 2013 at 18:36
  • 1
    Discovered devilspie application that I think I will use. Thanks! Oct 1, 2013 at 5:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .