Project

General

Profile

Change request #184

Configurations paths

Added by David Demelier over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Urgent
Category:
-
Target version:
Start date:
09/10/2013
Due date:
09/11/2013
% Done:

0%

Estimated time:
2.00 h
Spent time:
MFD after:
MFD revision:
Branch:
Bookmark:
Platform:

Description

The configurations paths are a little bit ambiguous and not very well managed. This is much because the NSIS installer let the user install the software on specific location.

1. Get rid of DEFAULT_IRCCD_CONFIG (same for irccdctl).

2. Instead, use CMAKE_INSTALL_PREFIX and GetModuleFileName on Windows to get the installation path / running directory.

The new order should be:

  1. -c override everything, if this file is not found we abort
  2. -> CMAKE_INSTALL_PREFIX (for Unix) / GetModuleFileName (Windows) ++ path to irccd.conf
  3. -> select ./irccd.conf
  4. -> select user config

A new function may appears to select the correct file easily?

History

#1

Updated by David Demelier over 6 years ago

  • Status changed from New to Closed

Done by commit:68cc07f7d901

Also available in: Atom PDF