UMS is showing it's PS3 Media Server origins on the Mac...


I know this is a trivial thing, compared to fixing various bugs and stuff, but it would be nice to see "PMS" changed to "UMS" at some point. :)
I'm not sure it's possible. I've been wondering where it gets that information from myself, and I suspect that it simply uses the name of the "main" class. That name is PMS, and will probably always be, unless we want to change thousands of refernces in the code and plugins.
At least on my version of Mac OS X, it's possible. I just did it. I added <string>-Xdock:name=UMS</string> to the <key>JVMOptions</key> of the Info.plist.
Relevant links:
https://stackoverflow.com/questions/26069315/swing-application-menu-name-not-displaying-correctly-in-java-1-8
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/packagingAppsForMac.html
https://developer.apple.com/library/content/documentation/Java/Conceptual/Java14Development/03-JavaDeployment/JavaDeployment.html
@esabol Of course it's "possible" to change the name, the problem is if it's possible within the limits of the AppBundler that generates Info.plist. UMS can also be run without using Info.plist, directly by starting Java either from the command line or a script, in which case I don't know if there is anything that can be done.
Of course it's "possible" to change the name, the problem is if it's possible within the limits of the AppBundler that generates Info.plist.
I think all you need to do is to add <option value="-Xdock:name=UMS"/> where the other <option value="..."/> tags are in the pom.xml file.
UMS can also be run without using Info.plist, directly by starting Java either from the command line or a script, in which case I don't know if there is anything that can be done.
I don't see how that is relevant to this issue. People who execute Java from the command line can add -Xdock:name=UMS to their command line if they want to (or not). I would recommend using open -a "Universal Media Server" to launch a Mac application anyway from the command line or script in any case.
@esabol I agree that it seems like the best solution, even though it will only work if installed as an "macOS Application". A reason to want to run it from the command line would be if it wasn't "installed".
@esabol Done in #1353. Thanks for doing the actual work 馃槈
Thank you, @Nadahar! I would say you did the actual work. :)
Unfortunately, you put quotes around UMS, and that was incorrect. As far as macOS is concerned, the name of the app is now "UMS" instead of UMS. It should be:
<option value="-Xdock:name=UMS"/>
Please reopen the issue and rectify.
@esabol I don't remember exactly why I did like I did now, but I think I tried without the quotes first. My VM server is currently unavailable, so I'll have to check it later when I have my OS X VM available again.
I tested it without the "s, and they definitely are not needed for any reason that I can see.
Thanks for the feedback @esabol
@esabol I tested this and confirmed that you're right. I've created #1381 to fix it.
Most helpful comment
I tested it without the
"s, and they definitely are not needed for any reason that I can see.