Commit 7b3d2ace authored by Tasso Evangelista's avatar Tasso Evangelista

Fix drag-n-drop crash in Linux

parent 1409a004
......@@ -87,17 +87,20 @@ app.on('window-all-closed', () => {
app.quit();
});
if (!app.isDefaultProtocolClient('rocketchat')) {
app.setAsDefaultProtocolClient('rocketchat');
}
app.setAppUserModelId('chat.rocket');
if (process.platform === 'linux') {
app.disableHardwareAcceleration();
}
app.on('ready', () => {
unsetDefaultApplicationMenu();
setUserDataPath();
migrateOlderVersionUserData();
if (!app.isDefaultProtocolClient('rocketchat')) {
app.setAsDefaultProtocolClient('rocketchat');
}
createMainWindow();
getMainWindow().then((mainWindow) => certificate.initWindow(mainWindow));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment