Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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