Skip to content

Instantly share code, notes, and snippets.

@marpontes
Created October 5, 2017 12:40
Show Gist options
  • Save marpontes/23cec835ac161d8d66c4c65e0c283434 to your computer and use it in GitHub Desktop.
Save marpontes/23cec835ac161d8d66c4c65e0c283434 to your computer and use it in GitHub Desktop.
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
@dnaite
Copy link

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
Copy link

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