From d26033575009ef22b17a28a98c1752f5b1c34f75 Mon Sep 17 00:00:00 2001 From: Damian Minkov Date: Wed, 26 Nov 2014 10:43:54 +0200 Subject: Fixes problem with inconsistent name of the application. --- resources/install/macosx/JavaApplicationStub | Bin 19336 -> 19400 bytes src/native/macosx/launcher/launcher.m | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/install/macosx/JavaApplicationStub b/resources/install/macosx/JavaApplicationStub index 380775b..afa07c3 100755 Binary files a/resources/install/macosx/JavaApplicationStub and b/resources/install/macosx/JavaApplicationStub differ diff --git a/src/native/macosx/launcher/launcher.m b/src/native/macosx/launcher/launcher.m index 9384330..f090f44 100644 --- a/src/native/macosx/launcher/launcher.m +++ b/src/native/macosx/launcher/launcher.m @@ -346,7 +346,9 @@ void launchJitsi(int argMainCount, char *argMainValues[]) appArgc = jargc; // Initialize the arguments to JLI_Launch() - int argc = 2 + [sprops count] + 1 + appArgc - psnArgsCount; + // 2 for argMainValues and classPath + // 1 + 1 - the dock.name + mainclass + int argc = 2 + [sprops count] + 1 + 1 + appArgc - psnArgsCount; if(options != NULL) argc += [options count]; @@ -377,6 +379,9 @@ void launchJitsi(int argMainCount, char *argMainValues[]) UTF8String]); } + argv[i++] = strdup( + [[NSString stringWithFormat:@"-Xdock:name=%@", pname] UTF8String]); + argv[i++] = strdup([mainClassName UTF8String]); // copy the application parameters, the number we have saved -- cgit v1.1