Unison GUI for OS X keeps creating a "unison.log" file in my home directory.

That's retarded, it should either hide the file (".unison.log"), or place it in a proper place, not in my home directory.

Do you know any way to prevent it from doing so? (without having to hack the source and recompile)

I could only come up with a daemon that checks for that file and deletes it, but maybe there are better ways...

link|improve this question

80% accept rate
2  
I hate to say this but could you be a bit more careful in how you phrase your questions. I can't imagine it helps getting good answers to your question. – dtlussier Aug 28 '10 at 16:38
feedback

2 Answers

up vote 3 down vote accepted

The location of the log file can be set in your profile file (typically .unison/something.prf) by adding a line logfile = /path/to/log/file. It can also be overridden on the command line with the -logfile option.

Generally, if a program doesn't behave in the way you want, I suggest looking for a configuration option before thinking up complex workarounds or modifying the source code. The documentation is your friend. In this case, searching “unison.log” in the documentation would have lead you immediately to the logfile preference.

link|improve this answer
thanks. It's still quite annoying to have to add it to multiple configuration file instead of just one, but it works... – Lohoris Aug 30 '10 at 8:04
feedback

I would recommend sending an email to the developers of the application, or if it is open source, download Xcode and the program source, modify the offending file path, and compile your own "fork" of Unison.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.