Skip to content

Commit

Permalink
make x11 work again
Browse files Browse the repository at this point in the history
  • Loading branch information
valueerrorx committed Sep 29, 2024
1 parent b30cfca commit e489fc9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/linux/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,12 @@ function linuxSnapshot (options = {}) {
//wayland override
const execAvailable = await checkExecutable('flameshot')
const isWayland = checkWayland()
if (isWayland && execAvailable ){ options.linuxLibrary = 'flameshot' }
else { return reject('wayland platform not supported. please install flameshot!') }

if (isWayland){
if ( execAvailable ){ options.linuxLibrary = 'flameshot' }
else { return reject('wayland platform not supported. please install flameshot!') }
}



switch (options.linuxLibrary) {
Expand Down

0 comments on commit e489fc9

Please sign in to comment.