1

Does anyone know the command line option to disable Chrome's custom title bar, like the Windows' equivalent of "--disable-features=Windows10CustomTitlebar", but for Linux?

I know that you can use the GTK+ theme and toggle the "Use system title bar and borders" option, but that only affects the main Chrome browser interface. I would like for it to apply to Chrome's windowed apps as well.

I have tried the following options to no avail:

--disable-features=LinuxCustomTitlebar

--disable-features=UbuntuCustomTitlebar

--disable-features=CustomTitlebar

  • It turns out that there is no equivalent option for Linux after a going through a Chromium Codesearch. This inconsistent behaviour has been confirmed to be a bug by the Chromium team. If you would like to get this bug prioritized and fixed soon then you can star the issue here. – Stephan Jun 4 '19 at 17:33
1

To use the system's default title bars in windowed Chrome apps you will have to create a .desktop shortcut manually.

Below is an example for YouTube but can be modified for any website.

Desktop shortcut

Create .desktop file: gedit ~/.local/share/applications/youtube.desktop

Add:

[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=YouTube
Icon=<custom path to your icons>/youtube.png
Exec=/opt/google/chrome/google-chrome --profile-directory=Default --app=https://youtube.com
StartupWMClass=youtube.com

Icon

Icons can be retrieved by browsing to the website and going into Chrome's menu: More tools > Create shortcut...

The icon will be located in its corresponding extension directory: ~/.config/google-chrome/Default/Extensions

Select the icon image with the largest size.

StartupWMClass

If your app URL contains a /, then it must be replaced with __.

Example:

StartupWMClass=play.google.com/music becomes StartupWMClass=play.google.com__music

Testing

Restart GNOME: Alt+F2 r Enter

Open app from application list.

Results

Before: Windowed Chrome apps without system title bar

After: Windowed Chrome apps with system title bar

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.