aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/xdisplay.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/plugins/xdisplay.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/xdisplay.py b/src/plugins/xdisplay.py
index 6f4bf7e..40a57e8 100644
--- a/src/plugins/xdisplay.py
+++ b/src/plugins/xdisplay.py
@@ -50,7 +50,7 @@ class XDisplay:
self.display = None
self.screen = None
else:
- self.host = self.connection.split(':')[:-1]
+ self.host = ':'.join(self.connection.split(':')[:-1])
if self.host.startswith('[') and self.host.endswith(']'):
self.host = self.host[1 : -1]
if self.host == '':