I have an application that can run with the current user or with root privileges.
In fact, there is a chance that the application will work simultaneously at the same time - once under the current user and once with root privileges.
I like to tell the user when the application is running as root. I am currently showing this in the window title, but I would prefer to change the name of the application so that it reads "Appname (Root)" if necessary. Thus, the name will appear both in the menu bar and in the Dock with this “root” information, and this will allow the user to determine which of the two instances of the application in the Dock is the root version.
Does anyone know if the application name can be changed by code, i.e. by the application itself or its launcher?
If this is not the case, my only option is to add an icon to the Dock icon that says “root”, but this is a last resort because it will not work for the menu bar or other tools that display application names (for example, other applications such like DragThing).
source
share