Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

158
Vistas
Electron window crashing on ubuntu 18, 20 for showOpenDialogSync or showOpenDialog

Electron (version 7.x) window crashing on ubuntu 18, 20 for showOpenDialogSync or showOpenDialog Below is my code

directorySelection = e => {
        const { onCustomPathUpdate } = this.props;
        const remote = window.require('electron').remote;
        const openDialog = remote.dialog.showOpenDialogSync || remote.dialog.showOpenDialog;
        var directory = openDialog({
            properties: ['openDirectory']
        });

        if (directory && directory.length) {
            onCustomPathUpdate(directory[0]);
        }
    };

<button onClick={this.directorySelection} type="button">Browse</button>

I am hosting React(16.8.4) application in Electron(7.x) window. I am using the above code for opening file explorer of ubuntu and it is crashing the application. Can anyone help to get it fixed?

The above code is working fine with Ubuntu version 16.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda