X-Git-Url: https://git.ralfj.de/lilass.git/blobdiff_plain/ffc98865eecc0de34e0a33d7d83461ed9d4ee29b..38ae85f1535d8301498b94649ed100c88dc377a6:/screen.py diff --git a/screen.py b/screen.py index a543fea..78eafa1 100644 --- a/screen.py +++ b/screen.py @@ -126,18 +126,19 @@ class ScreenSituation: just choose any remaining connector.''' # which connectors are there? self._getXrandrInformation() - print(self.connectors) # figure out which is the internal connector self.internalConnector = self._findAvailableConnector(internalConnectorNames) if self.internalConnector is None: - raise Exception("Could not automatically find internal connector, please use ~/.dsl.conf to specify it manually.") - print(self.internalConnector) + raise Exception("Could not automatically find internal connector, please use (or fix) ~/.dsl.conf to specify it manually.") + print("Detected internal connector:",self.internalConnector) # and the external one if externalConnectorNames is None: externalConnectorNames = list(self.connectors.keys()) externalConnectorNames.remove(self.internalConnector) self.externalConnector = self._findAvailableConnector(externalConnectorNames) - print(self.externalConnector) + if self.internalConnector == self.externalConnector: + raise Exception("Internal and external connector are the same. This must not happen. Please fix ~/.dsl.conf."); + print("Detected external connector:",self.externalConnector) # Run xrandr and fill the dict of connector names mapped to lists of available resolutions. def _getXrandrInformation(self):