Skip to content

Commit

Permalink
Removing --no-sandbox argument from file/dir paths (#drawio-desktop-1…
Browse files Browse the repository at this point in the history
…056)
  • Loading branch information
m-mohamedin committed Jun 7, 2024
1 parent deab898 commit 32badd8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,13 +583,20 @@ app.whenReady().then(() =>

var paths = program.args;

// Remove --no-sandbox arg from the paths
if (Array.isArray(paths))
{
paths = paths.filter(function(path) { return path != null && path != '--no-sandbox'; });
}

// If a file is passed
if (paths !== undefined && paths[0] != null)
{
var inStat = null;

try
{
console.log('Exporting ', paths);
inStat = fs.statSync(paths[0]);
}
catch(e)
Expand Down

0 comments on commit 32badd8

Please sign in to comment.