View Single Post
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#8
Originally Posted by Flandry View Post
You should keep the settings in the user's config directory, so /home/user/.appname/. If the app needs to download large amounts of data, you should probably store it in opt or ~/MyDocs, depending on the nature of the data.

For PrBoom i tell users they can put their own wads in /opt/doom/wads, and to make that easier, chown it to user in the postinst script.
thanks Flandry, these data that Im talking about are huge xml files so I'd want them to be in /opt and not take up space, they get deleted by the app if they are +7 days old.

Could you brief me how I can go about the postinst script while packaging my app so I can chmown the /opt/<app> path to my application ?

*EDIT*
a quick search helped. It looks like a normal file without any predefined format.
I just need to have my shell commands in there I guess and it will be run after the debian package is installed.
please correct if this is not rightly stated.

cheers

Last edited by krk969; 2010-02-05 at 17:47.