diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-07 18:53:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-07 18:53:43 -0600 |
commit | 977b943aa9e3c96ace9b8e5828a48ca3abee5260 (patch) | |
tree | f736a11a59ed4eeb61fca1c8eae43417eb161592 /mcop | |
parent | 2ceaddf9ddadca2d7de8413759f2fee4a48e3936 (diff) | |
download | arts-977b943aa9e3c96ace9b8e5828a48ca3abee5260.tar.gz arts-977b943aa9e3c96ace9b8e5828a48ca3abee5260.zip |
Rename KDEHOME and KDEDIR
Diffstat (limited to 'mcop')
-rw-r--r-- | mcop/mcoputils.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mcop/mcoputils.cc b/mcop/mcoputils.cc index c935d10..6f108b3 100644 --- a/mcop/mcoputils.cc +++ b/mcop/mcoputils.cc @@ -83,7 +83,7 @@ static char *locate_mcop_dir() string user_tmp_dir; int uid = getuid(); const char *home_dir = getenv("HOME"); - const char *kde_home = uid ? getenv("KDEHOME") : getenv("KDEROOTHOME"); + const char *kde_home = uid ? getenv("TDEHOME") : getenv("KDEROOTHOME"); const char *kde_prefix = "/socket-"; const char *tmp; char *tmp_buf; @@ -151,7 +151,7 @@ static char *locate_mcop_dir() result = lstat(kde_tmp_dir.c_str(), &stat_buf); if ((result == 0) && (S_ISDIR(stat_buf.st_mode))) { - /* $KDEHOME/socket-$HOSTNAME is a normal directory. Do nothing. */ + /* $TDEHOME/socket-$HOSTNAME is a normal directory. Do nothing. */ tmp_buf = strdup(kde_tmp_dir.c_str()); return tmp_buf; } @@ -231,7 +231,7 @@ int build_link(string tmp_prefix, const char *kde_prefix) char *tmp_buf; int uid = getuid(); const char *home_dir = getenv("HOME"); - const char *kde_home = uid ? getenv("KDEHOME") : getenv("KDEROOTHOME"); + const char *kde_home = uid ? getenv("TDEHOME") : getenv("KDEROOTHOME"); int result; struct stat stat_buf; @@ -295,7 +295,7 @@ int build_link(string tmp_prefix, const char *kde_prefix) result = lstat(kde_tmp_dir.c_str(), &stat_buf); if ((result == 0) && (S_ISDIR(stat_buf.st_mode))) { - /* $KDEHOME/tmp is a normal directory. Do nothing. */ + /* $TDEHOME/tmp is a normal directory. Do nothing. */ printf("Directory \"%s\" already exists.\n", kde_tmp_dir.c_str()); return 0; } |