View Single Post
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#2
Originally Posted by XenGi View Post
hi,

I'm developing an application with qt creator for n900.
In my app I need to save some stuff to a config file. This file should be located at "~/.myapp/config.xml".
Creating and editing the file at runtime is no problem but how do I add it to the debian package so that it will be installed along with the binary?
That should be the standard way in debian, should it?
No, you should never be installing a user config file as part of the package. Packages should only install system-wide config files (usually in /etc), or install the config files to a shared directory (under /usr/share usually), where they can be copied into the user directory when first run.
 

The Following User Says Thank You to Rob1n For This Useful Post: