Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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...

share|improve this question
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
up vote 6 down vote accepted

The location of the log file can be set in your profile file (typically ~/.unison/something.prf but as you're on OS X it will be in ~/Library/Application Support/Unison/ ) 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.

share|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... – o0'. Aug 30 '10 at 8:04

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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .