Skip to content

Commit

Permalink
fix(linux): default screen selection (#169)
Browse files Browse the repository at this point in the history
fixes #165
  • Loading branch information
bencevans authored Aug 16, 2020
1 parent 8194117 commit 36f7e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linux/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function guessFiletype (filename) {
function linuxSnapshot (options = {}) {
return new Promise((resolve, reject) => {
listDisplays().then((screens) => {
const screen = screens.find(options.screen ? screen => screen.id === options.screen : screen => screen.primary)
const screen = screens.find(options.screen ? screen => screen.id === options.screen : screen => screen.primary || screen.id === 'default')

const filename = options.filename ? (options.filename.replace(/"/g, '\\"')) : '-'
const execOptions = options.filename ? {} : {
Expand Down

0 comments on commit 36f7e93

Please sign in to comment.