Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm building a deb file for my application following online tutoria and have no major problem. I can specify file to go to /usr/bin, /usr/lib and many system directories. But there are settings that should go on per user basis that is /home/stefano/.myapp or even as per recommendation /home/stefano/.config/myapp but cannot find how do I specify that in install file. Google did not help at all in this case (which might be my fault for using bad keyword). Any Idea is welcome!

share|improve this question

1 Answer 1

up vote 2 down vote accepted

According to the Debian packaging policy we should not package files for a user's HOME directory:

The setup will differ from host to host. Therefore, no program should rely on this location.

This makes sense because a package is unaware of users on the system it is going to be installed on.

Of course we are allowed to store our configuration files. If it were for a per-user configuration a .config/<nameofapp> directory is the appropriate place. We have to create this path from within our application.

Default settings templates or system wide settings may be distributed as DATA with the package.

System-wide host configurations may be stored in /etc.

share|improve this answer
    
anymore explanation on DATA package? It seems like is what I want! –  Stefano Mtangoo Jul 24 '13 at 11:21
    
I decided to put them in /etc because as Debian Policy States its the most sane option! –  Stefano Mtangoo Jul 24 '13 at 11:50

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.