XDisplayConnection.setDisplayName

can be used to override normal handling of display name from environment and/or command line

class XDisplayConnection
static
setDisplayName

Meta