privatenumber / snap-tweet

Snap a screenshot of a tweet 📸
MIT License
333 stars 19 forks source link

Fails on WSL, OK on Windows; " EACCES: permission denied, mkdir '/mnt/undefined/Users/undefined/AppData/Local/lighthouse.59445321'" #42

Open michaelfromyeg opened 1 month ago

michaelfromyeg commented 1 month ago

Bug description

└ $ snap-tweet https://twitter.com/jack/status/20
[snap-tweet] Error: EACCES: permission denied, mkdir '/mnt/undefined/Users/undefined/AppData/Local/lighthouse.59445321'
✖ EACCES: permission denied, mkdir
  '/mnt/undefined/Users/undefined/AppData/Local/lighthouse.59445321':
  https://twitter.com/jack/status/20

Reproduction

snap-tweet https://twitter.com/jack/status/20 on WSL

Environment

michaelfromyeg commented 1 month ago

Related to https://github.com/GoogleChrome/chrome-launcher/issues/324

michaelfromyeg commented 1 month ago

@privatenumber this will be a bit more complicated to fix (and potentially upstream), for now it works fine on Windows so not a huge deal