I’m still not convinced. I respect your opinion that your code should be more portable, and yes, I’ve written code that uses that method (grumble grumble OSX grumble)… But in this case (which for context was several years ago now), I wrote it with a specific target in mind, which meant I knew exactly what path to use.

I personally think the only time you need to write with this portability in mind is when you’re writing for multiple OS targets – Ubuntu to OSX is a common one, but to something where the paths are not defined as per LSB is another… Perhaps Nix (not used, so not sure).

Is there another case I should be aware of danger89?