I’ve been using textadept with the sway window manager for years. I’ve recently switched to the niri window manager, and I can’t launch textadept. I’m on wayland.
I’ve read a lot of discussions about similar error messages, both here on this forum and elsewhere, but none of the fixes I’ve tried have worked.
Here’s what happens, with debug enabled.
$ QT_DEBUG_PLUGINS=1 textadept
QFactoryLoader::QFactoryLoader() checking directory path "/home/amy/github/lib/qt-5.15.17/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/run/wrappers/lib/qt-5.15.17/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/home/amy/.nix-profile/lib/qt-5.15.17/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/profile/lib/qt-5.15.17/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/home/amy/.local/state/nix/profile/lib/qt-5.15.17/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/etc/profiles/per-user/amy/lib/qt-5.15.17/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/var/nix/profiles/default/lib/qt-5.15.17/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/run/current-system/sw/lib/qt-5.15.17/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/g681jvrph9pmp8mp0s5r92bnpcypb2bd-qtwayland-5.15.17-bin/lib/qt-5.15.17/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/nix/store/g681jvrph9pmp8mp0s5r92bnpcypb2bd-qtwayland-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqwayland-egl.so"
Found metadata in lib /nix/store/g681jvrph9pmp8mp0s5r92bnpcypb2bd-qtwayland-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqwayland-egl.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"wayland-egl"
]
},
"archreq": 0,
"className": "QWaylandEglPlatformIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("wayland-egl")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/g681jvrph9pmp8mp0s5r92bnpcypb2bd-qtwayland-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqwayland-generic.so"
Found metadata in lib /nix/store/g681jvrph9pmp8mp0s5r92bnpcypb2bd-qtwayland-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqwayland-generic.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"wayland"
]
},
"archreq": 0,
"className": "QWaylandIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("wayland")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/g681jvrph9pmp8mp0s5r92bnpcypb2bd-qtwayland-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqwayland-xcomposite-egl.so"
Found metadata in lib /nix/store/g681jvrph9pmp8mp0s5r92bnpcypb2bd-qtwayland-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqwayland-xcomposite-egl.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"wayland-xcomposite-egl"
]
},
"archreq": 0,
"className": "QWaylandXCompositeEglPlatformIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("wayland-xcomposite-egl")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/g681jvrph9pmp8mp0s5r92bnpcypb2bd-qtwayland-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqwayland-xcomposite-glx.so"
Found metadata in lib /nix/store/g681jvrph9pmp8mp0s5r92bnpcypb2bd-qtwayland-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqwayland-xcomposite-glx.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"wayland-xcomposite-glx"
]
},
"archreq": 0,
"className": "QWaylandXCompositeGlxPlatformIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("wayland-xcomposite-glx")
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/16r7w3c53anzji8am2mnf4yiqnmhzvnn-qtdeclarative-5.15.17-bin/lib/qt-5.15.17/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/3qxgxq4lbzjigmcy70smj7b3zimgnwqz-qtsvg-5.15.17-bin/lib/qt-5.15.17/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqeglfs.so"
Found metadata in lib /nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqeglfs.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"eglfs"
]
},
"archreq": 0,
"className": "QEglFSIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqlinuxfb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"linuxfb"
]
},
"archreq": 0,
"className": "QLinuxFbIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqminimal.so"
Found metadata in lib /nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqminimal.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimal"
]
},
"archreq": 0,
"className": "QMinimalIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqminimalegl.so"
Found metadata in lib /nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqminimalegl.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"minimalegl"
]
},
"archreq": 0,
"className": "QMinimalEglIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqoffscreen.so"
Found metadata in lib /nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqoffscreen.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"offscreen"
]
},
"archreq": 0,
"className": "QOffscreenIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqvnc.so"
Found metadata in lib /nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqvnc.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"vnc"
]
},
"archreq": 0,
"className": "QVncIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqxcb.so"
Found metadata in lib /nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqxcb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"xcb"
]
},
"archreq": 0,
"className": "QXcbIntegrationPlugin",
"debug": false,
"version": 331520
}
Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/nix/store/0q3p8j7ybw2vmv65i6mzkfr9zrb5a91s-textadept-12.8/share/textadept/platforms" ...
loaded library "/nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqxcb.so"
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Aborted (core dumped) QT_DEBUG_PLUGINS=1 textadept
One of the suggested fixes I tried was to set the plugin path to point to a copy of libqxcb.so. Didn’t help.
$ sudo find / -name libqxcb.so
/nix/store/3wsrw39wnscwnfyvyrzzr5da9mxrp2av-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqxcb.so
/nix/store/9wrby1l822pmbvfn9kfxmvh5dhfnpgyb-qtbase-6.9.1/lib/qt-6/plugins/platforms/libqxcb.so
/nix/store/i282hl3017jbvqzp38mhl3vzyhkkc8xs-qtbase-5.15.17-bin/lib/qt-5.15.17/plugins/platforms/libqxcb.so
find: ‘/run/user/1000/doc’: Permission denied
$ QT_QPA_PLATFORM_PLUGIN_PATH=/nix/store/9wrby1l822pmbvfn9kfxmvh5dhfnpgyb-qtbase-6.9.1/lib/qt-6/plugins/platforms/libqxcb.so textadept
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/nix/store/9wrby1l822pmbvfn9kfxmvh5dhfnpgyb-qtbase-6.9.1/lib/qt-6/plugins/platforms/libqxcb.so" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Aborted (core dumped) QT_QPA_PLATFORM_PLUGIN_PATH=/nix/store/9wrby1l822pmbvfn9kfxmvh5dhfnpgyb-qtbase-6.9.1/lib/qt-6/plugins/platforms/libqxcb.so textadept