sindresorhus / wallpaper

Manage the desktop wallpaper
MIT License
1.05k stars 91 forks source link

fix cmd undefined error #40

Closed Davenchy closed 6 years ago

Davenchy commented 6 years ago

Fix ERROR: TypeError: Cannot read property 'cmd' of undefined at get (.../linux.js:174:10)

value of 'stdout' at line 127 before edit: /usr/bin/gsettings /usr/bin/gconftool-2 /usr/bin/dconf /usr/bin/qdbus\n

value of 'stdout' at line 127 after edit:

/usr/bin/gsettings\n
/usr/bin/gconftool-2\n
/usr/bin/dconf\n
/usr/bin/qdbus\n

============================================================

value of 'stdout' at line 136 before edit: [ '/usr/bin/gsettings /usr/bin/gconftool-2 /usr/bin/dconf /usr/bin/qdbus' ]

value of 'stdout' at line 136 after edit:

[
 '/usr/bin/gsettings',
  '/usr/bin/gconftool-2',
  '/usr/bin/dconf',
  '/usr/bin/qdbus' 
]
sindresorhus commented 6 years ago

// @TiagoDanin

TiagoDanin commented 6 years ago

@sindresorhus Only work using echo on my ArchLinux, on Manjaro and Deepin i have the same problem above. The problem is with my ArchLinux, sorry for the confusion. Merge :+1: