Start a web browser application with no window borders

5,390

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.

Share:
5,390

Related videos on Youtube

Ionică Bizău
Author by

Ionică Bizău

💻 Programmer ⚡️ Geek 🎹 Pianist & Organist 🚀 Learner 💡 Mentor 💫 Dreamer 🍏 Vegetarian 🙏 Jesus follower Website | GitHub | Twitter | PayPal Donations

Updated on September 18, 2022

Comments

  • Ionică Bizău
    Ionică Bizău almost 2 years

    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?

    • Oleh Prypin
      Oleh Prypin almost 11 years
      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.
    • Quidam
      Quidam about 4 years
      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.
  • Ionică Bizău
    Ionică Bizău almost 11 years
    Almost correct. But I don't need the title bar. How can I remove it?
  • Braiam
    Braiam almost 11 years
    @Johnツ read the last line.
  • Ionică Bizău
    Ionică Bizău almost 11 years
    Can you please add more information about that?
  • Braiam
    Braiam almost 11 years
  • Ionică Bizău
    Ionică Bizău almost 11 years
    Discovered devilspie application that I think I will use. Thanks!