Skip to content
Discussion options

You must be logged in to vote

Check this out:

mc/src/main.c

Lines 98 to 114 in 885426a

/** POSIX version. The only version we support. */
static void
OS_Setup (void)
{
mc_shell_init ();
// This is the directory, where MC was installed, on Unix this is DATADIR
// and can be overridden by the MC_DATADIR environment variable
const char *datadir_env = g_getenv ("MC_DATADIR");
if (datadir_env != NULL)
mc_global.sysconfig_dir = g_strdup (datadir_env);
else
mc_global.sysconfig_dir = g_strdup (SYSCONFDIR);

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@for-coursera
Comment options

Answer selected by for-coursera
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants