Automattic / simplenote-electron

Simplenote for Web, Windows, and Linux
https://app.simplenote.com
GNU General Public License v2.0
4.69k stars 553 forks source link

Fixed app start up issue on Linux (Ubuntu) #3159

Open worldwalker2000 opened 10 months ago

worldwalker2000 commented 10 months ago

Fix

App would not start on Ubuntu 22.04 because of GPU sandbox. This appears to be a problem with chromium and adding the flag --disable-gpu-sandbox fixes it. This fixes #3155 and #3149.

P.S. If you want me to add back the app.disableHardwareAcceleration(); just let me know, but I assume that because the sandbox required that line it won't be necessary any more with the GPU sand box disabled. This assumption holds true on my machine but again if you want that line back just let me know.

Test

  1. Install on Ubuntu 22.04
  2. Open app

Release

Fixed but preventing start up on Ubuntu Linux systems.

codebykat commented 2 months ago

Hi @worldwalker2000, thanks for doing this. Can you confirm whether it is still required on latest trunk? I can't tell if it is still relevant in the latest versions of Electron. There's also a comment here that building it with "portable" in electron-builder will fix the problem.