surprisetalk / nowify

an opinionated time-management utility
The Unlicense
122 stars 2 forks source link

annoy fails #6

Open midick opened 5 months ago

midick commented 5 months ago

Hi, I really like the idea of nowify and installed it as soon as I heard about it. I set up a small routines file and nowify cli as well as nowify stats work fine.

However nowify annoy throws:

error: Uncaught (in promise) NotFound: No such file or directory (os error 2)
    at opRun (ext:runtime/40_process.js:58:10)
    at Object.run (ext:runtime/40_process.js:155:15)
    at file:///home/dick/software/nowify/nowify.ts:198:18
    at eventLoopTick (ext:core/01_core.js:169:7)

do you have any idea what might be causing this? I am on Linux , so maybe the sound file not being where nowify expects it (I didn't find one in the repo, so I assume it uses a system sound)

surprisetalk commented 5 months ago

Ah, afplay and the sound file are specific to MacOS.

I recommend opening a PR with one of the following fixes:

midick commented 5 months ago

thank you! makes sense, I'll go with the easy option and create the PR once I have some time