Re: User-specific files for maemo packages

2010-01-12 Thread Jeremiah Foster

On Jan 11, 2010, at 9:55 PM, Till Harbaum / Lists wrote:

> Hi,
> 
> Am Montag 11 Januar 2010 schrieb ibrahim:
>> I wonder how can I put some user-specific files on the filesystem that 
>> can't get removed when my application package is uninstalled.

I am not sure that this is a good idea. The user should have the right to 
remove your application data if they want to.

> Don't create the directory through the debian package, but let
> the application create the directory when there's a need (e.g.
> just when you want to store your app specific files).

This is most likely a good idea. There are a number of places specified by the 
FHS as to where exactly you should put user data, depending on how long you 
want it around, if it is a config file, or the type it is stored as. 

In any case, this is not something you do in your package but rather in your 
application while interacting with the file system.

Jeremiah
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: User-specific files for maemo packages

2010-01-11 Thread Till Harbaum / Lists
Hi,

Am Montag 11 Januar 2010 schrieb ibrahim:
> I wonder how can I put some user-specific files on the filesystem that 
> can't get removed when my application package is uninstalled.
Don't create the directory through the debian package, but let
the application create the directory when there's a need (e.g.
just when you want to store your app specific files).

Till
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


User-specific files for maemo packages

2010-01-11 Thread ibrahim

hi there;

I wonder how can I put some user-specific files on the filesystem that 
can't get removed when my application package is uninstalled.
for normal Linux systems, I can fimd user-settings/specific files  
stored inside hidden folders inside the /home/user_name folder ( for 
example: firefox's browser-cache, installed addons and history files are 
all located inside a hidden folder called /home/user/.mozilla )


I tried to do so for my maemo application packafe, So, I created a 
hidden folder .app_name/ and put it inside the folders 
my_package_folder/home/user/ , I created the package out of the folder 
and everything is alright when i deploy my package to the phone.
but the problem id : when I uninstall the package, the hidden folder i 
created inside /home/user/ gets deleted too, as the apt keeps track of 
all extracted files.


what can I do to fix that?
thanks in advance
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers