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 is a very cool tool for using LESS / CSS - but I can't figure out where it stores its configuration file.

I thought perhaps it was storing it in this file:

~/Library/Application Support/Less app/lessDataFile.lessData

However that does not seem to be the case. Does anyone know where the correct configuration file is? To clarify I'm looking for the one that stores the list of folders and paths that are used by the app.

enter image description here

share|improve this question
up vote 8 down vote accepted

Bryan here. Guy behind The above locations for the data file and preferences are correct. The reason the app stores the information in a "don't mess with this" format is that it was never designed to be used across machines.

Here's the reason: say you have two computers. They both have the exact same website project in the exact same location. Say, ~/Desktop/Project/main.less exists on both computers. You might think you could add this project to on one machine and "share" the data file between the two computers. But behind the scenes, OS X sees these "exact same" files as very different. They have different file identifiers, which is the primary way "knows" which file is which.

It's a very challenging issue to manage, because there's no way for to know if two projects across two machines are really the same project or if they just have the same structure and file names.

And, since the app started life three years ago as my own personal tool and since I didn't need to synchronize across multiple machines, I never designed it to be used that way.

share|improve this answer
Thanks for being clear about your affiliation and the neat answer. Welcome to Super User! :) – studiohack Jan 5 '12 at 5:32
Great to see developers answering problems here! – Simon Sheehan Jan 5 '12 at 5:48
Thanks Bryan - that makes sense. I'd still like to be able to use between multiple computers, though. Is it possible for me to request a feature for "importing and exporting the configuration" then? – cwd Jan 15 '12 at 19:06

You had actually guessed right. The list of folders and paths used by the app are in:

~/Library/Application Support/Less app/lessDataFile.lessData

It's a binary plist (Property List) file, and from the look of the structure of the file, it's not meant to be messed with. It looks like an unintuitive serialization/dump of the internal state of the app.

It seems to store its preferences in this other binary plist file:


...but this file doesn't contain any of the folder paths used by the app. That's all in the lessDataFile.lessData file you'd already found.

It's standard practice for Mac OS X apps to store their preferences in a plist like that (that location, that naming scheme).

You can read and edit binary plist files with Xcode (and many other programming-oriented text editors for Mac OS X), or with the command-line tools PlistBuddy(8), or defaults(1). Or you can convert them to XML text files with plutil(1). Some tools for working with plists expect the file name to end in .plist, so keep that in mind if you're struggling to get a tool to open the .LessData file.

share|improve this answer
Thanks @Spiff. I symlinked the first file into dropbox so I could keep it synced between two computers but it doesn't appear to be working - so even though the paths are in that config file I thought perhaps they were stored someplace else as well? Method I used was symlink the file on both computers. Open on the first, add a folder, exist less, wait for DB to stop syncing. Let DB sync on second computer, open less, no new folders show up... – cwd Jan 4 '12 at 14:16
@cwd It looks to me like the .lessData file is a really raw serialization/dump of the app's internal state. It's no surprise to me that it breaks when you put it on another machine. – Spiff Jan 4 '12 at 18:54
Ok I see what you're saying about that now. Thanks! Maybe they will build a better way to store the paths in a newer version. – cwd Jan 4 '12 at 21:33

You must log in to answer this question.

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