aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorwsnipex <wsnipex@a1.net>2014-09-23 14:48:30 +0200
committerMemphiz <memphis@machzwo.de>2014-10-19 21:34:58 +0200
commit4f0381f83d70f17a499e31a8ad518e3d2ff206a7 (patch)
tree92faf2648fdc0ab2bcbb44b3b1a2243f7b84bb80 /tools
parentf83fa708edf1b73ce2d035ad8d1326eca719a0bd (diff)
[rebrand][darwin] adjust to new env var APP_HOME instead of XBMC_HOME
Diffstat (limited to 'tools')
-rw-r--r--tools/EventClients/Clients/OSXRemote/XBMCHelper.m2
-rwxr-xr-xtools/darwin/runtime/preflight8
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/EventClients/Clients/OSXRemote/XBMCHelper.m b/tools/EventClients/Clients/OSXRemote/XBMCHelper.m
index 1e945499ec..20d0f6fe8f 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("XBMC_HOME", [mp_home_path UTF8String], 1);
+ setenv("APP_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/darwin/runtime/preflight b/tools/darwin/runtime/preflight
index 7b923f7ab0..06a7164d0a 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 XBMC_HOME set, cannot install defaults.\n")
- if !$ENV{'XBMC_HOME'};
+die("No APP_HOME set, cannot install defaults.\n")
+ if !$ENV{'APP_HOME'};
sub get_home {
return $ENV{'HOME'} if defined $ENV{'HOME'};
}
sub get_extras {
- # XBMC_HOME is assumed to be always setup
- return $ENV{'XBMC_HOME'}."/extras/" if get_os() eq "osx";
+ # APP_HOME is assumed to be always setup
+ return $ENV{'APP_HOME'}."/extras/" if get_os() eq "osx";
return;
}