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 am trying to package my app into a .deb file following the tutorial.

Everything works fine as far as the application software goes, but I can't figure out how to install the sample data and config files in the right place.

I am trying to install to ~/.config/myapp. How do you specify this in the Debian install file? Everything runs, but the data actually gets put in a new directory called ~ under the root. I need them to be in the users Home directory, owned by the user.

Do I have to put these files in the /opt/myapp directory and then copy them, from within the application, to ~/.config? Or is there another way to do this?

share|improve this question
I don't know anything about packaging, so I'm just thinking out loud, but there's a variable called $HOME that contains the home directory of the user, so maybe you could use $HOME/.config/myapp. –  Alaa Sep 8 '13 at 18:27
I tried this but I got a $HOME directory in root. –  user2068393 Sep 8 '13 at 23:07
add comment

Your Answer


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

Browse other questions tagged or ask your own question.