spell-music / csound-expression

Haskell Framework for Electronic Music
320 stars 31 forks source link

`tmp.csd` files in the working directory #70

Closed georgefst closed 2 years ago

georgefst commented 2 years ago

Is there any particular reason these are written to the current directory, rather than to tmp, or providing an option to specify a location? The average user of csound-expression will never want to look at them - it's below the level of abstraction the library works at.

This isn't a huge issue. The only real downside to the status quo seems to be that I always have to add tmp.csd to my .gitignore.

anton-k commented 2 years ago

I see what you mean. I've never bothered with that. It was somewhere on background of my mind to make it in more consistent way.

I don't like the tmp solution because it excludes Windows. Maybe we can put it to hidden file under user home directory? Need to check up the solution for creating hidden files in cross-platform way.

anton-k commented 2 years ago

It's not hard to do. Only we need to create cross-platform solution.

georgefst commented 2 years ago

I don't like the tmp solution because it excludes Windows.

getTemporaryDirectory?

anton-k commented 2 years ago

Ok that's convenient! Thanks for the link. I'll try to do smth about it.