Stop XQuartz from showing icon in the OSX dock and stop loading xterm on start

Edit /Applications/Utilities/XQuartz.app/Contents/Info.plist as root (ie, sudo vim in a terminal), and add the following key/value inside of <dict>:

<key>NSUIElement</key>
<string>1</string>

…. and in your terminal run defaults write org.macosforge.xquartz.X11 app_to_run /usr/bin/true, and then restart XQuartz: the dock icon should be gone and it shouldn’t start xterm anymore.

Written by
Open Source software architect and technologist. He's just this guy, you know? Follow him him on Google+.
Published in
Transmissions from the Little Blue Marble

Published November 18th, 2014

Comments

4 Responses
Nickolas Pylarinos

Hi! I am developing ManageConky (a clone of conky-manager but for macOS) which manages Themes and Widgets for a port of conky for macOS.

I want to provide a way for themes/widgets to load without causing XQuartz app icon to load on dock everytime conky runs. But I want to do it without root-permissions.

Could there be another way to achieve this?
Thank you!

npyl.

Hi! I edit the plist with nano, after that i run the command replacing “apptorun” by /Applications/Inkscape but don’t work for me. Any other help? Thanks in advice!

I think you have to specify the binary itself, which is somewhere in that directory.

Leave a Reply