Personally opengl should be default, or at least an option, for Qt rendering. Otherwise, WinBox4 does seem to use Metal 3D stuff which for a network admin tool is unnecessary and spins up the GPU for unknown reasons, at high battery/power costs/heat. I filed a bug about this already, so MikroTik is aware of the request.
Since I already use ENVs to force opengl, I think your approach is way over-complex. Mac ships with Automator.app to create a native .app that runs a shell script to start the "real" WinBox. No plist or gatekeeper worries. So you can do the same as @Jairo by using Automator.app:
- Open Automator.app
- Select "New"
- Select "Application"
- Then, select "Run Shell Script" in list of "Actions" on left
- Paste in the following below:
# Force the rendering backend to OpenGL (less likely to trigger dGPU than Metal)
export QSG_RHI_BACKEND=opengl
# Explicitly request the low-power GPU for the RHI
export QSG_RHI_PREFER_LOW_POWER_GPU=1
# macOS-specific Qt flag for the platform plugin
export QT_MAC_WANTS_LOW_POWER_GPU=1
# Use the basic render loop to prevent 'spinning' on the render thread
export QSG_RENDER_LOOP=basic
# Launch the binary directly to ensure environment inheritance
/Applications/Winbox.app/Contents/MacOS/Winbox &
- Select File > Save, and pick a name like "WinBox (OpenGL)" which will be default to
/Applications - Use the new "WinBox (OpenGL)" instead of the "real" WinBox.app