Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

335
Views
Electron .loadURL ERROR RR_FILE_NOT_FOUND (-6) Intentando abrir un archivo o directorio local en una nueva ventana del navegador

Estoy tratando de abrir un archivo o directorio local en una nueva ventana de electrones como lo hace Chrome. la nueva ventana abierta sin nada que mostrar:

PDT estoy usando Linux y VSCode nueva ventana abierta

y mostrar este error: error

el código del script que abre la ventana:

 function shell(path){ console.log(path); createWindow = () => { nombre=tittle(path); const fileWin = new remote.BrowserWindow({ width: 800, height: 600, title: nombre, resizable: true, show: true, webPreferences: { plugins: true, contextIsolation: false, nodeIntegration: true, enableRemoteModule: true, webSecurity: false } }); remote.require("@electron/remote/main").enable(fileWin.webContents); fileWin.setMenu(null); fileWin.setIcon('src/assets/img/logo-FC.png'); fileWin.loadURL('file://'+path); fileWin.show(); } createWindow(); }

la ruta variable es para diferentes ubicaciones de archivos o directorios, el caso de los ejemplos de error es:

/inicio/aromero/Documentos/3225 DOSSIER Julio/0. GENERAL/0.1 Calibración de equipos/HMV

si pongo el enlace con el 'archivo: //' al frente en el navegador Chrome, eso muestra lo que quiero. explorador de cromo

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!