From ea1901e36495c62161315f54a8af398ea965ab9d Mon Sep 17 00:00:00 2001 From: Karlson2k Date: Wed, 22 Oct 2014 22:48:45 +0400 Subject: Change APP_HOME -> KODI_HOME and other APP_* -> KODI_* --- tools/EventClients/Clients/OSXRemote/XBMCHelper.m | 2 +- tools/Linux/kodi.sh.in | 4 ++-- tools/darwin/runtime/preflight | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tools') diff --git a/tools/EventClients/Clients/OSXRemote/XBMCHelper.m b/tools/EventClients/Clients/OSXRemote/XBMCHelper.m index 20d0f6fe8f..b507611746 100644 --- a/tools/EventClients/Clients/OSXRemote/XBMCHelper.m +++ b/tools/EventClients/Clients/OSXRemote/XBMCHelper.m @@ -268,7 +268,7 @@ NSFileManager *fileManager = [NSFileManager defaultManager]; if([fileManager fileExistsAtPath:mp_app_path]){ if(mp_home_path && [mp_home_path length]) - setenv("APP_HOME", [mp_home_path UTF8String], 1); + setenv("KODI_HOME", [mp_home_path UTF8String], 1); //launch or activate xbmc if(![[NSWorkspace sharedWorkspace] launchApplication:mp_app_path]) ELOG(@"Error launching %@", mp_app_path); diff --git a/tools/Linux/kodi.sh.in b/tools/Linux/kodi.sh.in index ccb44b6f73..938582d691 100644 --- a/tools/Linux/kodi.sh.in +++ b/tools/Linux/kodi.sh.in @@ -104,8 +104,8 @@ print_crash_report() fi single_stacktrace "$PWD" 1 # Find in plugins directories - if [ $APP_HOME ]; then - BASEDIR=$APP_HOME + if [ $KODI_HOME ]; then + BASEDIR=$KODI_HOME else BASEDIR="$LIBDIR/${bin_name}/" fi diff --git a/tools/darwin/runtime/preflight b/tools/darwin/runtime/preflight index 06a7164d0a..e30336630a 100755 --- a/tools/darwin/runtime/preflight +++ b/tools/darwin/runtime/preflight @@ -3,16 +3,16 @@ die("No HOME set, cannot install defaults.\n") if !$ENV{'HOME'}; -die("No APP_HOME set, cannot install defaults.\n") - if !$ENV{'APP_HOME'}; +die("No KODI_HOME set, cannot install defaults.\n") + if !$ENV{'KODI_HOME'}; sub get_home { return $ENV{'HOME'} if defined $ENV{'HOME'}; } sub get_extras { - # APP_HOME is assumed to be always setup - return $ENV{'APP_HOME'}."/extras/" if get_os() eq "osx"; + # KODI_HOME is assumed to be always setup + return $ENV{'KODI_HOME'}."/extras/" if get_os() eq "osx"; return; } -- cgit v1.2.3