I don't know if something happened to my system (Manjaro) or if there was an AutoKey update that changed things (sometimes there are hundreds of upgrades in Manjaro and I usually don't check every one of them, so I don't know in this case).
Anyway, I currently have the autokey-py3 package 0.95.4-1 installed from AUR.
johnny $ autokey-gtk -l
2018-12-20 17:58:00,080 INFO - root - Initialising application
2018-12-20 17:58:00,089 INFO - root - Initialise global hotkeys
2018-12-20 17:58:00,089 INFO - config-manager - Loading config from existing file: /home/johnny/.config/autokey/autokey.json
2018-12-20 17:58:00,090 DEBUG - config-manager - Loading folder at '/home/johnny/.config/autokey/data/Skript'
2018-12-20 17:58:00,097 DEBUG - config-manager - Loading folder at '/home/johnny/.config/autokey/data/Fraser'
2018-12-20 17:58:00,133 INFO - config-manager - Configuration changed - rebuilding in-memory structures
2018-12-20 17:58:00,133 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Skript
2018-12-20 17:58:00,133 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Skript/Tillfälligt
2018-12-20 17:58:00,133 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Skript/Basic-programmering
2018-12-20 17:58:00,133 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Skript/Handla
2018-12-20 17:58:00,133 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Skript/Exempel
2018-12-20 17:58:00,133 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Skript/Översättning
2018-12-20 17:58:00,134 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser
2018-12-20 17:58:00,134 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Ekonomi
2018-12-20 17:58:00,134 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Chatförkortningar
2018-12-20 17:58:00,134 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Korrigeringar
2018-12-20 17:58:00,134 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Datorförkortningar
2018-12-20 17:58:00,134 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Datorförkortningar/Internet
2018-12-20 17:58:00,134 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Datorförkortningar/Sökvägar
2018-12-20 17:58:00,134 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Datorförkortningar/Taggar
2018-12-20 17:58:00,134 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Namn
2018-12-20 17:58:00,135 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Specialtecken
2018-12-20 17:58:00,135 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Musikprojekt
2018-12-20 17:58:00,135 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Musikprojekt/Prylar
2018-12-20 17:58:00,135 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Musikprojekt/Genres
2018-12-20 17:58:00,135 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Musikprojekt/Upphovsmän
2018-12-20 17:58:00,135 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Musikprojekt/Låttitlar
2018-12-20 17:58:00,135 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Matematik
2018-12-20 17:58:00,135 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Bank-förkortningar
2018-12-20 17:58:00,135 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Adresser
2018-12-20 17:58:00,136 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Adresser/E-post
2018-12-20 17:58:00,136 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Förkortningar
2018-12-20 17:58:00,136 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data/Fraser/Artister
2018-12-20 17:58:00,136 INFO - config-manager - Successfully loaded configuration
2018-12-20 17:58:00,136 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey/data
2018-12-20 17:58:00,136 DEBUG - inotify - Adding watch for /home/johnny/.config/autokey
2018-12-20 17:58:00,136 DEBUG - config-manager - Global settings: {'isFirstRun': True, 'serviceRunning': True, 'menuTakesFocus': False, 'showTrayIcon': True, 'sortByUsageCount': True, 'promptToSave': False, 'enableQT4Workaround': False, 'interfaceType': 'XRecord', 'undoUsingBackspace': False, 'windowDefaultSize': [824, 1020], 'hPanePosition': 390, 'columnWidths': [150, 50, 100], 'showToolbar': True, 'notificationIcon': 'autokey-status', 'workAroundApps': '.*VirtualBox.*|krdc.Krdc', 'triggerItemByInitial': False, 'scriptGlobals': {}}
2018-12-20 17:58:00,136 INFO - service - Starting service
2018-12-20 17:58:00,149 ERROR - root - Error starting interface: Can't connect to display ":0.0": b'Invalid MIT-MAGIC-COOKIE-1 key'
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/autokey/gtkapp.py", line 149, in initialise
self.service.start()
File "/usr/lib/python3.7/site-packages/autokey/service.py", line 81, in start
self.mediator = IoMediator(self)
File "/usr/lib/python3.7/site-packages/autokey/iomediator/_iomediator.py", line 50, in __init__
self.interface = XRecordInterface(self,
service.app)
File "/usr/lib/python3.7/site-packages/autokey/interface.py", line 201, in __init__
self.__initMappings()
File "/usr/lib/python3.7/site-packages/autokey/interface.py", line 254, in __initMappings
self.localDisplay = display.Display()
File "/usr/lib/python3.7/site-packages/Xlib/display.py", line 89, in __init__
self.display = _BaseDisplay(display)
File "/usr/lib/python3.7/site-packages/Xlib/display.py", line 71, in __init__
protocol_display.Display.__init__(self, *args, **keys)
File "/usr/lib/python3.7/site-packages/Xlib/protocol/display.py", line 167, in __init__
raise error.DisplayConnectionError(self.display_name, r.reason)
Xlib.error.DisplayConnectionError: Can't connect to display ":0.0": b'Invalid MIT-MAGIC-COOKIE-1 key'