Go Back   Champions of Regnum > English > Technical Support > Linux

Linux Technical issues under Linux platform

Reply
 
Thread Tools Display Modes
Old 01-15-2010, 12:05 PM   #1
Ertial
Master
 
Ertial's Avatar
 
Join Date: May 2007
Location: Friesland, the Netherlands
Posts: 298
Ertial is on a distinguished road
Exclamation Regnum Online doesn't follow the XDG Base Directory Specification

On Linux the Regnum Online client stores two pieces of data in your home folder: the hidden folder '.ngdstudios' and the hidden file '.rolauncher'.

However, they're stored right in ~, your home root directory. This doesn't follow the FreeDesktop XDG Base Directory Specification, and therefore rolauncher is one of the (too) many applications cluttering your home directory.

The XDG Base Directory Specification creates three different locations for configuration files, data and cache. The user can control this location and so relocate data if he'd wanted to.
There are:
  • $XDG_DATA_HOME, default: ~/.local/share/ (You cry when you lose this.)
  • $XDG_CONFIG_HOME ~/.config/ (Your settings are lost, but nothing unrecoverable.)
  • $XDG_CACHE_HOME ~/.cache/ (Your computer is slow at first when this is gone.)

I assume that it would be the best solution to store both files of the Regnum Online client in $XDG_CONFIG_HOME.

For getting the $XDG_CONFIG_HOME variable you can use the Glib function 'g_get_user_config_dir()' when using C.

Also see this blogpost: Modify your application to use XDG folders.
__________________
Ertial no ha iniciado sesión   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:09 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
NGD Studios 2002-2024 © All rights reserved