cross-platform / icloud-for-linux

Access all of your favourite iCloud apps from Linux
https://snapcraft.io/icloud-for-linux
GNU General Public License v3.0
381 stars 56 forks source link

Does not start on Fedora using Wayland #24

Closed eeickmeyer closed 1 year ago

eeickmeyer commented 3 years ago

Also reported to the unofficial-webapp-todo developer (mxarc#1) and unofficial-webapp-office developer as well (sirredbeard#28).

Just as an example, using Mail, attempted form command line using QT_DEBUG_PLUGINS=1:

$ QT_DEBUG_PLUGINS=1 snap run icloud-for-linux.mail

WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
QFactoryLoader::QFactoryLoader() checking directory path "/snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so"
Found metadata in lib /snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 329989
}

Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 329989
}

Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so"
Found metadata in lib /snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 329989
}

Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so"
Found metadata in lib /snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 329989
}

Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so"
Found metadata in lib /snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 329989
}

Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so"
Found metadata in lib /snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 329989
}

Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
Found metadata in lib /snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 329989
}

Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/snap/icloud-for-linux/166/bin/platforms" ...
loaded library "/snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
qt.qpa.screen: QXcbConnection: Could not connect to display :0
Could not connect to any X display.
QLibraryPrivate::unload succeeded on "/snap/icloud-for-linux/166/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so" 
MarcusTomlinson commented 3 years ago

Looks like https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1424 broke X11 for snaps :/

Upstream bug: https://gitlab.gnome.org/GNOME/mutter/-/issues/1454

MarcusTomlinson commented 3 years ago

@eeickmeyer could you try the latest snap and see if this issue is now resolved? Thanks!

iMonZ commented 3 years ago

@eeickmeyer could you try the latest snap and see if this issue is now resolved? Thanks!

Nope. For me, instead of crashing, it's just ignoring the QT_QPA_PLATFORM variable.

iMonZ commented 3 years ago

@eeickmeyer could you try the latest snap and see if this issue is now resolved? Thanks!

Nope. For me, instead of crashing, it's just ignoring the QT_QPA_PLATFORM variable. Can you add the Wayland plug again to see if it works now?

MarcusTomlinson commented 1 year ago

Could you try v0.12 - Run snap refresh icloud-for-linux.