moshfeu / y2mp3

An Electron app to download youtube playlist
MIT License
148 stars 27 forks source link

Blank app when no "downloads" folder in home #136

Open mjeammet opened 4 months ago

mjeammet commented 4 months ago

Hi 👋🏽 ,

Describe the bug Blank app upon launching. Everything under "Application" menu is non-responsive.

To Reproduce Steps to reproduce the behavior:

  1. Install Ubuntu with non-English language, I guess
  2. Download AppImage, make it executable
  3. Launch the app

Screenshots image

Add logs from DevTools

Uncaught Error: ENOENT: no such file or directory, mkdir '/home/marie/downloads/y2mp3'
    at mkdirSync (node:fs:1334:3)
    at file:///tmp/.mount_y2mp3-IMxfqy/resources/app.asar/resources/app.bundle.js:2:1800618
    at file:///tmp/.mount_y2mp3-IMxfqy/resources/app.asar/resources/app.bundle.js:2:1983090
    at file:///tmp/.mount_y2mp3-IMxfqy/resources/app.asar/resources/app.bundle.js:2:1983094

🔨 Fix My system is in french so my "downloads" folder is actually called "Téléchargements". I just added a "downloads" directory, relaunched the app and everything's working just fine now 🎉.

moshfeu commented 4 months ago

Thanks for reporting @mjeammet! I didn't think about other languages 😅 Maybe I'll try to find the download folder but if I can't find, I'll ask the user to selectnthe folder