Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pass --disable-gpu down to Electron apps on mac (Slack, Whatsapp, Trello, ...)

On my Macbook Pro (OS X El Capitan) I was having issues on Electron based apps. These apps had visual issues/glitches like blank screens, visual components showing only when hovering or transparent menus.

By opening with these comands, the problems disappeared.

open /Applications/Slack.app/ --args --disable-gpu
open /Applications/Trello.app/ --args --disable-gpu
open /Applications/Whatsapp.app/ --args --disable-gpu
@smartworld-dm

This comment has been minimized.

Copy link

@smartworld-dm smartworld-dm commented Dec 16, 2018

Terrific, Let me add 2 apps more.

atom --disable-gpu
open /Applications/Google\ Chrome.app/ --args --disable-gpu

@dnaite

This comment has been minimized.

Copy link

@dnaite dnaite commented Jan 9, 2020

Glitches also happens in Trello app on my macbook with a dying graphics card.
open /Applications/Termius.app/ --args --disable-gpu

@renanAlmeida828

This comment has been minimized.

Copy link

@renanAlmeida828 renanAlmeida828 commented Jun 2, 2020

Can this work for the Spotify app as well? 200mb being consumed from Spotify Helper (GPU) on my MacBook Pro Late 2019.

EDIT: Just found it!

On a Mac
open -b com.spotify.client --args -disable-gpu

Tutorial:

  1. Open Automator
  2. Select Application, then click "choose"
  3. Click on "Utilities" on the left panel under Actions tab
  4. Double click "run shell script"
  5. Enter the following into the box "open -b com.spotify.client --args -disable-gpu"
  6. Click File > Save. Call it "Spotify iGPU" or something
  7. Whenever you want to open spotify, open it from this and it should leave your dGPU alone 🙂
    (if you want, update the app icon as shown here How to change Mac Icons)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment