Anki not following system theme (GTK2/3, Qt6)

Hi guys,

I’m having trouble making Anki follow my system theme. I have a GTK2/3 theme that should be applied to qt5 and qt6 applications via qt5ct and qt6ct. It works in those applications, and also applied some system colours in Anki 2.1.4 (the version packaged with Debian 10). Since I upgraded to 24.11, the theme is not applied.

In tools>preferences, the theme is set to ‘Follow System’, and the style is set to ‘Native’. My dotfiles in my home folder are also correct according to the GTK section of the documentation (can’t link here, forum disallows it)

I’m using the qt6 version of Anki, but the qt5 version had the same problem. Both are also installed natively from the download link on the Anki website, not via snap or flatpak.

Thanks in advance for your help :slight_smile:

Does this help – Incorrect GTK Theme - Anki Manual ? Or is this the “GTK section of the documentation” that you were trying to link to?

1 Like

Yes, that’s the section of the manual I was referring to. My dotfiles have been like that for some time, it themed an old version of Anki just fine, but not the latest one for some reason.

There’ve been a lot of changes since 2018 when your old version of Anki was released. Even after that page was added to the manual (2021 or earlier, since it was ported from the old site), there have been posts here about issues with GTK themes. This one from 2022 seemed to have more ideas and discussion than application, but you might get more out of it than I did – especially from the developer here: #28 by dae.

I unearthed this from the old forum in 2018 – right around the time your old version came out, so it might not be useful to you now: Anki 2.1 look on Plasma 5 / Anki Archive / Discussion Area - AnkiMobile/AnkiWeb Support .

If you search the Forums, some of the other GTK-related threads might be more meaningful to you than they were to me.

I don’t have any other suggestions for you, but maybe some of the Linux folks will have ideas.

1 Like

Thanks Danika_Dakika. From the discussion you linked, it sounds like the custom Qt6 themes and colours cannot be applied to Anki. However, I’ve just installed 2.1.54, which was supposedly the last version that allowed this according to the post author, and Anki still didn’t respect my custom colours.

In addition to this, I tried a tip from a thread linked to one Danika_Dakika suggested. Before running install.sh, I copied my system gtk themes folder and placed it in Anki’s plugins folder. I also copied my system libqt6ct.so and libqt6gtk2.so files and placed them in the platformthemes folder. Had no effect on the latest version of Anki, on 2.1.54, it complained that said files were too new.

I don’t really have the the knowledge to know which version I should/shouldn’t compile myself, it would be trial and error, which I don’t really have time for right now

1 Like

have you tried setting the QT_QPA_PLATFORMTHEME to either qt6ct or qt5ct?

also if you can give the console output when running anki with QT_DEBUG_PLUGINS set to 1.

1 Like

Yes, in my ~/.profile file, QT_QPA_PLATFORMTHEME is qt5ct. I’ve tried setting it to qt5ct and qt6ct directly in the console too, but that doesn’t work either.

Here’s the output from running QT_QPA_PLATFORMTHEME="qt6ct" QT_DEBUG_PLUGINS=1 anki (580 lines!)

Anki starting...
Initial setup...
Preparing to run...
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms" ... 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvnc.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "archlevel": 1,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("vnc") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-egl.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-egl"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("wayland-egl") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqoffscreen.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archlevel": 1,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("offscreen") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqeglfs.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "archlevel": 1,
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("eglfs") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvkkhrdisplay.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvkkhrdisplay.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vkkhrdisplay"
        ]
    },
    "archlevel": 1,
    "className": "QVkKhrDisplayIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("vkkhrdisplay") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimal.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archlevel": 1,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("minimal") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqlinuxfb.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "archlevel": 1,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("linuxfb") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archlevel": 1,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("xcb") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-generic.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-generic.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("wayland") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimalegl.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "archlevel": 1,
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("minimalegl") 
Qt debug: checking directory path "/usr/local/share/anki/platforms" ... 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so" loaded library 
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes" ... 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes/libqt6ct.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes/libqt6ct.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "qt6ct",
            "qt5ct"
        ]
    },
    "archlevel": 1,
    "className": "Qt6CTPlatformThemePlugin",
    "debug": false,
    "version": 394240
}

 
Qt debug: Got keys from plugin meta data QList("qt6ct", "qt5ct") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes/libqgtk3.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes/libqgtk3.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "gtk3"
        ]
    },
    "archlevel": 1,
    "className": "QGtk3ThemePlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("gtk3") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes/libqxdgdesktopportal.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes/libqxdgdesktopportal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "xdgdesktopportal",
            "flatpak",
            "snap"
        ]
    },
    "archlevel": 1,
    "className": "QXdgDesktopPortalThemePlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("xdgdesktopportal", "flatpak", "snap") 
Qt debug: checking directory path "/usr/local/share/anki/platformthemes" ... 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes/libqt6ct.so" cannot load: Cannot load library /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes/libqt6ct.so: (/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes/libqt6ct.so: undefined symbol: _ZNK14QPlatformTheme10appearanceEv, version Qt_6_PRIVATE_API) 
Qt debug: QLibraryPrivate::loadPlugin failed on "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes/libqt6ct.so" : "Cannot load library /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes/libqt6ct.so: (/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes/libqt6ct.so: undefined symbol: _ZNK14QPlatformTheme10appearanceEv, version Qt_6_PRIVATE_API)" 
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforminputcontexts" ... 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so, metadata=
{
    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "ibus"
        ]
    },
    "archlevel": 1,
    "className": "QIbusPlatformInputContextPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("ibus") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so, metadata=
{
    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "fcitx",
            "fcitx5"
        ]
    },
    "archlevel": 1,
    "className": "QFcitx5PlatformInputContextPlugin",
    "debug": false,
    "version": 394496
}

 
Qt debug: Got keys from plugin meta data QList("fcitx", "fcitx5") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so, metadata=
{
    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "compose",
            "xim"
        ]
    },
    "archlevel": 1,
    "className": "QComposePlatformInputContextPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("compose", "xim") 
Qt debug: checking directory path "/usr/local/share/anki/platforminputcontexts" ... 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so" loaded library 
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/xcbglintegrations" ... 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/xcbglintegrations/libqxcb-glx-integration.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/xcbglintegrations/libqxcb-glx-integration.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5",
    "MetaData": {
        "Keys": [
            "xcb_glx"
        ]
    },
    "archlevel": 1,
    "className": "QXcbGlxIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("xcb_glx") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/xcbglintegrations/libqxcb-egl-integration.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/xcbglintegrations/libqxcb-egl-integration.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5",
    "MetaData": {
        "Keys": [
            "xcb_egl"
        ]
    },
    "archlevel": 1,
    "className": "QXcbEglIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("xcb_egl") 
Qt debug: checking directory path "/usr/local/share/anki/xcbglintegrations" ... 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/xcbglintegrations/libqxcb-glx-integration.so" loaded library 
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/styles" ... 
Qt debug: checking directory path "/usr/local/share/anki/styles" ... 
2024-12-30 09:59:53,844:INFO:aqt.mediasrv: Serving on http://127.0.0.1:42597
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats" ... 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqtiff.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqtiff.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "tiff",
            "tif"
        ],
        "MimeTypes": [
            "image/tiff",
            "image/tiff"
        ]
    },
    "archlevel": 1,
    "className": "QTiffPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("tiff", "tif") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqico.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqico.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "ico",
            "cur"
        ],
        "MimeTypes": [
            "image/vnd.microsoft.icon",
            "image/vnd.microsoft.icon"
        ]
    },
    "archlevel": 1,
    "className": "QICOPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("ico", "cur") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqpdf.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqpdf.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "pdf"
        ],
        "MimeTypes": [
            "application/pdf"
        ]
    },
    "archlevel": 1,
    "className": "QPdfPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("pdf") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqjpeg.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqjpeg.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "jpg",
            "jpeg"
        ],
        "MimeTypes": [
            "image/jpeg",
            "image/jpeg"
        ]
    },
    "archlevel": 1,
    "className": "QJpegPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("jpg", "jpeg") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqsvg.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqsvg.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "svg",
            "svgz"
        ],
        "MimeTypes": [
            "image/svg+xml",
            "image/svg+xml-compressed"
        ]
    },
    "archlevel": 1,
    "className": "QSvgPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("svg", "svgz") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqwebp.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqwebp.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "webp"
        ],
        "MimeTypes": [
            "image/webp"
        ]
    },
    "archlevel": 1,
    "className": "QWebpPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("webp") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqwbmp.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqwbmp.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "wbmp"
        ],
        "MimeTypes": [
            "image/vnd.wap.wbmp"
        ]
    },
    "archlevel": 1,
    "className": "QWbmpPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("wbmp") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqicns.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqicns.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "icns"
        ],
        "MimeTypes": [
            "image/x-icns"
        ]
    },
    "archlevel": 1,
    "className": "QICNSPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("icns") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqtga.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqtga.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "tga"
        ],
        "MimeTypes": [
            "image/x-tga"
        ]
    },
    "archlevel": 1,
    "className": "QTgaPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("tga") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqgif.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqgif.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "gif"
        ],
        "MimeTypes": [
            "image/gif"
        ]
    },
    "archlevel": 1,
    "className": "QGifPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("gif") 
Qt debug: checking directory path "/usr/local/share/anki/imageformats" ... 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqtiff.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqico.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqpdf.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqjpeg.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqsvg.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqwebp.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqwbmp.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqicns.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqtga.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqgif.so" loaded library 
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/iconengines" ... 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/iconengines/libqsvgicon.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/iconengines/libqsvgicon.so, metadata=
{
    "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
    "MetaData": {
        "Keys": [
            "svg",
            "svgz",
            "svg.gz"
        ]
    },
    "archlevel": 1,
    "className": "QSvgIconPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("svg", "svgz", "svg.gz") 
Qt debug: checking directory path "/usr/local/share/anki/iconengines" ... 
Starting main loop...
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/accessiblebridge" ... 
Qt debug: checking directory path "/usr/local/share/anki/accessiblebridge" ... 
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/accessible" ... 
Qt debug: checking directory path "/usr/local/share/anki/accessible" ... 
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
2024-12-30 09:59:57,440:WARNING:waitress: unhandled close event

could be the cause? no idea why an old version would stop working though, the deps are bundled already so i dont think there should be a version mismatch there. unless libqt6ct.so is not the original file in the installation package. did you replace it?

1 Like

Thanks voczi for your help so far :slight_smile:

You’re right that the qt libraries are bundled with Anki when doing a manual install, I think this is the root cause of the problem. Anki does not ship with libqt6ct.so, so I added that from my system. With or without the file, the appearance is the same. That file comes from the default installed on Debian, which is 0.7.3 (works with Qt 6.4.2 that is also packaged by Debian)

Would you suggest I compile a newer or older version of qt6ct for Anki?

no worries.
can you:

  1. install anki from this https://github.com/ankitects/anki/releases/download/24.11/anki-24.11-linux-qt6.tar.zst
  2. run the main anki executable with QT_DEBUG_PLUGINS=1 and post the output again
  3. also post the output of “ldd -r anki_executable_path” i wonder what else it is linking against if not qt6ct.
1 Like

QT_DEBUG_PLUGINS=1 anki on a fresh download/install of Anki gives:

Anki starting...
Initial setup...
Preparing to run...
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms" ... 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvnc.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "archlevel": 1,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("vnc") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-egl.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-egl"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("wayland-egl") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqoffscreen.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archlevel": 1,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("offscreen") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqeglfs.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "archlevel": 1,
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("eglfs") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvkkhrdisplay.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqvkkhrdisplay.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vkkhrdisplay"
        ]
    },
    "archlevel": 1,
    "className": "QVkKhrDisplayIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("vkkhrdisplay") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimal.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archlevel": 1,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("minimal") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqlinuxfb.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "archlevel": 1,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("linuxfb") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archlevel": 1,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("xcb") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-generic.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqwayland-generic.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("wayland") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimalegl.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "archlevel": 1,
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("minimalegl") 
Qt debug: checking directory path "/usr/local/share/anki/platforms" ... 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforms/libqxcb.so" loaded library 
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes" ... 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes/libqgtk3.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes/libqgtk3.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "gtk3"
        ]
    },
    "archlevel": 1,
    "className": "QGtk3ThemePlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("gtk3") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes/libqxdgdesktopportal.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platformthemes/libqxdgdesktopportal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "xdgdesktopportal",
            "flatpak",
            "snap"
        ]
    },
    "archlevel": 1,
    "className": "QXdgDesktopPortalThemePlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("xdgdesktopportal", "flatpak", "snap") 
Qt debug: checking directory path "/usr/local/share/anki/platformthemes" ... 
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforminputcontexts" ... 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so, metadata=
{
    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "ibus"
        ]
    },
    "archlevel": 1,
    "className": "QIbusPlatformInputContextPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("ibus") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so, metadata=
{
    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "fcitx",
            "fcitx5"
        ]
    },
    "archlevel": 1,
    "className": "QFcitx5PlatformInputContextPlugin",
    "debug": false,
    "version": 394496
}

 
Qt debug: Got keys from plugin meta data QList("fcitx", "fcitx5") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so, metadata=
{
    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "compose",
            "xim"
        ]
    },
    "archlevel": 1,
    "className": "QComposePlatformInputContextPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("compose", "xim") 
Qt debug: checking directory path "/usr/local/share/anki/platforminputcontexts" ... 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so" loaded library 
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/xcbglintegrations" ... 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/xcbglintegrations/libqxcb-glx-integration.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/xcbglintegrations/libqxcb-glx-integration.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5",
    "MetaData": {
        "Keys": [
            "xcb_glx"
        ]
    },
    "archlevel": 1,
    "className": "QXcbGlxIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("xcb_glx") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/xcbglintegrations/libqxcb-egl-integration.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/xcbglintegrations/libqxcb-egl-integration.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5",
    "MetaData": {
        "Keys": [
            "xcb_egl"
        ]
    },
    "archlevel": 1,
    "className": "QXcbEglIntegrationPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("xcb_egl") 
Qt debug: checking directory path "/usr/local/share/anki/xcbglintegrations" ... 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/xcbglintegrations/libqxcb-glx-integration.so" loaded library 
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/styles" ... 
Qt debug: checking directory path "/usr/local/share/anki/styles" ... 
2024-12-30 11:45:17,450:INFO:aqt.mediasrv: Serving on http://127.0.0.1:43913
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats" ... 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqtiff.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqtiff.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "tiff",
            "tif"
        ],
        "MimeTypes": [
            "image/tiff",
            "image/tiff"
        ]
    },
    "archlevel": 1,
    "className": "QTiffPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("tiff", "tif") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqico.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqico.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "ico",
            "cur"
        ],
        "MimeTypes": [
            "image/vnd.microsoft.icon",
            "image/vnd.microsoft.icon"
        ]
    },
    "archlevel": 1,
    "className": "QICOPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("ico", "cur") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqpdf.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqpdf.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "pdf"
        ],
        "MimeTypes": [
            "application/pdf"
        ]
    },
    "archlevel": 1,
    "className": "QPdfPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("pdf") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqjpeg.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqjpeg.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "jpg",
            "jpeg"
        ],
        "MimeTypes": [
            "image/jpeg",
            "image/jpeg"
        ]
    },
    "archlevel": 1,
    "className": "QJpegPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("jpg", "jpeg") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqsvg.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqsvg.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "svg",
            "svgz"
        ],
        "MimeTypes": [
            "image/svg+xml",
            "image/svg+xml-compressed"
        ]
    },
    "archlevel": 1,
    "className": "QSvgPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("svg", "svgz") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqwebp.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqwebp.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "webp"
        ],
        "MimeTypes": [
            "image/webp"
        ]
    },
    "archlevel": 1,
    "className": "QWebpPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("webp") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqwbmp.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqwbmp.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "wbmp"
        ],
        "MimeTypes": [
            "image/vnd.wap.wbmp"
        ]
    },
    "archlevel": 1,
    "className": "QWbmpPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("wbmp") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqicns.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqicns.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "icns"
        ],
        "MimeTypes": [
            "image/x-icns"
        ]
    },
    "archlevel": 1,
    "className": "QICNSPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("icns") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqtga.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqtga.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "tga"
        ],
        "MimeTypes": [
            "image/x-tga"
        ]
    },
    "archlevel": 1,
    "className": "QTgaPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("tga") 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqgif.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqgif.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "gif"
        ],
        "MimeTypes": [
            "image/gif"
        ]
    },
    "archlevel": 1,
    "className": "QGifPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("gif") 
Qt debug: checking directory path "/usr/local/share/anki/imageformats" ... 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqtiff.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqico.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqpdf.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqjpeg.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqsvg.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqwebp.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqwbmp.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqicns.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqtga.so" loaded library 
Qt debug: "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/imageformats/libqgif.so" loaded library 
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/iconengines" ... 
Qt debug: looking at "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/iconengines/libqsvgicon.so" 
Qt debug: Found metadata in lib /usr/local/share/anki/lib/PyQt6/Qt6/plugins/iconengines/libqsvgicon.so, metadata=
{
    "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
    "MetaData": {
        "Keys": [
            "svg",
            "svgz",
            "svg.gz"
        ]
    },
    "archlevel": 1,
    "className": "QSvgIconPlugin",
    "debug": false,
    "version": 394752
}

 
Qt debug: Got keys from plugin meta data QList("svg", "svgz", "svg.gz") 
Qt debug: checking directory path "/usr/local/share/anki/iconengines" ... 
Starting main loop...
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/accessiblebridge" ... 
Qt debug: checking directory path "/usr/local/share/anki/accessiblebridge" ... 
Qt debug: checking directory path "/usr/local/share/anki/lib/PyQt6/Qt6/plugins/accessible" ... 
Qt debug: checking directory path "/usr/local/share/anki/accessible" ... 
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
2024-12-30 11:45:20,223:WARNING:waitress: unhandled close event

ldd -r /usr/local/bin/anki gives this output:

        linux-vdso.so.1 (0x00007ffe995d9000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fabb90cc000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fabb4921000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fabb90c7000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fabb90c2000)
        libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fabb90bd000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fabb909b000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fabb4740000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fabb90ec000)

what if you try installing it through pip:

python3 -m venv anki_venv
./anki_venv/bin/pip install anki aqt pyqt6 pyqt6-webengine
./anki_venv/bin/python -c "import aqt; aqt.run()"

Anki still isn’t themed unfortunately, there’s no change

even if you set the qt5ct/qt6ct in that env variable?
well, i have no idea now. ive had lots of luck with native themes in other qt apps (qbittorrent, okular, …) so it seems like its an anki problem.

Yes, I did set the environment variable…

I too have had correctly themed qt applications (qt5ct, qt6ct, mnemosyne, the old version of anki) so I agree that the new Anki is the problem. Thanks so much for your help and ideas anyway, I really appreciate it. I’d never have thought of trying to install via pip :smiley:

1 Like

Is this a regression from the 24.06 release, or were you using an older Anki version before you upgraded?

Hi Damien,

I was using a very old version before this (2.1.4, the one packaged with Debian 11). I upgraded because it’s no longer in the Debian 12 repository and I was experiencing some bugs that have now been fixed.

I’ve not tried 24.06, but I did install 2.1.54, where the theme set by qt6ct also had no effect. Should I give 24.06 a go?

I was more concerned this had been a recent regression. If it’s been broken for some time, that would not surprise me, as distros make tweaks to their versions of Qt, and Anki is distributed with stock Qt builds (via package, or via PyQt on PyPi) that may not work with system platform themes.

1 Like

Ok, understood. Is there a way to impose a platform theme on the Qt install shipped with Anki? Or is this not something you recommend