Tracker: Patches

5 Store user config in user local directory - ID: 3181371
Last Update: Comment added ( mvejvoda )

It's a standard security practice to limit the permissions to the minimum necessary. Because of this, software is installed in directories without write permissions for normal user. Configuration and any other files that the user needs to write aren't stored in the same directory than the software but in a user local config dir.
This patch makes glest.log, glestuser.ini, glestuserkeys.ini and screenshots to be stored in the local directory. It's only implemented for Linux since I don't know the details of Windows, but I'm sure Windows offers an API to find the user local folder ("C:\Documents and Settings\[username]\Local Settings\Application Data" in Windows XP, "C:\Users\[username]\AppData" in Vista/7 and perhaps "HD:Users:[username]:Library:Application Support" in Mac OS X?)

To implement it in other OSes the "getUserConfigDir()" just needs some ifdefs for each platform.


Cristian Morales Vega ( reddwarf69 ) - 2011-02-14 14:32:47 PST

5

Closed

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )

Date: 2012-11-02 14:28:49 PDT
Sender: mvejvodaProject Admin

This was already done as of 3.6.0.3 (notice we are bundked now in Debian
and Ubuntu supporting standard writiable user paths)


Attached File ( 1 )

Filename Description Download
megaglest-3.4.0-user_config.patch Original patch Download

Changes ( 4 )

Field Old Value Date By
status_id Open 2012-11-02 14:28:49 PDT mvejvoda
allow_comments 1 2012-11-02 14:28:49 PDT mvejvoda
close_date - 2012-11-02 14:28:49 PDT mvejvoda
File Added 401652: megaglest-3.4.0-user_config.patch 2011-02-14 14:32:48 PST reddwarf69