Skip to content

Commit

Permalink
Debug a segfault on electron 0.33.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mixu committed Oct 12, 2015
1 parent 6c4016b commit 0be0574
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules/
*.png
.DS_Store

2 changes: 1 addition & 1 deletion bin/shot.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function runElectron() {
if (typeof argv[key] !== 'boolean') {
return all.concat([ '--' + key, argv[key] ]);
} else {
return all.concat('--' + (argv[key] ? 'no-' : ''));
return all.concat('--' + (argv[key] ? 'no-' : '') + key);
}
}, []));

Expand Down
4 changes: 3 additions & 1 deletion electron/run-tasks.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var fs = require('fs'),
os = require('os'),
path = require('path');

var ipc = require('ipc'),
Expand All @@ -14,7 +15,8 @@ module.exports = function(tasks) {
if (i === 0) {
mainWindow = new BrowserWindow({
show: true,
'enable-larger-than-screen': true,
// SEGFAULTS on linux (!) with Electron 0.33.7 (!!)
'enable-larger-than-screen': (os.platform() !== 'linux'),
'skip-taskbar': true,
'use-content-size': true,
// resizable: false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "electroshot",
"version": "1.0.0",
"description": "# Features",
"description": "Capture website screenshots (with web fonts!) using Electron",
"main": "test.js",
"scripts": {
"test": "mocha -R spec --bail ./test/*.test.js"
Expand Down
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# screenshot
# electroshot

Capture website screenshots (with web fonts!) using Electron.

# Features

Expand Down

0 comments on commit 0be0574

Please sign in to comment.