deltachat / deltachat-desktop

Email-based instant messaging for Desktop.
GNU General Public License v3.0
939 stars 166 forks source link

Wayland support #2800

Closed Mikaela closed 8 months ago

Mikaela commented 2 years ago
%  LC_ALL=C flatpak run chat.delta.desktop --enable-features=UseOzonePlatform,WaylandWindowDecorations,WebRTCPipeWireCapturer --ozone-platform=wayland

Logfile: /home/mikaela/.var/app/chat.delta.desktop/config/DeltaChat/logs/2022-06-03-18-34-36.log
LaunchProcess: failed to execvp:
xdg-settings
LaunchProcess: failed to execvp:
xdg-settings
[2:0603/183437.385550:ERROR:bus.cc(392)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0603/183437.407287:ERROR:address_tracker_linux.cc(214)] Could not bind NETLINK socket: Address already in use (98)
[50:0603/183439.224891:ERROR:gpu_init.cc(441)] Passthrough is not supported, GL is egl
[50:0603/183439.358321:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
(node:2) electron: The default of nativeWindowOpen is deprecated and will be changing from false to true in Electron 15.  See https://github.com/electron/electron/issues/28511 for more information.
(Use `deltachat-desktop --trace-warnings ...` to show where the warning was created)
init: 7.663s
  1. Allow the flatpak permission to use wayland with flatpak --user override chat.delta.desktop --socket=wayland as the manifest doesn't include that
  2. flatpak run chat.delta.desktop --enable-features=UseOzonePlatform,WaylandWindowDecorations,WebRTCPipeWireCapturer --ozone-platform=wayland
    • Screenshots: N/A (nothing to screenshot)
    • Logs:
2022-06-03T15:34:36.282Z    main/index              INFO    ""  "Deltachat Version 1.28.2 flathub 1650996411789"
2022-06-03T15:34:37.822Z    main/deltachat/webxdc   WARNING "\n/app/delta/resources/app/src/main/deltachat/webxdc.ts:392:9,\nrejected (/app/delta/resources/app/tsc-dist/main/deltachat/webxdc.js:6:65)"    "webxdc cleanup failed" {"stack":"Error: ENOENT: no such file or directory, scandir '/home/mikaela/.var/app/chat.delta.desktop/config/DeltaChat/Partitions'","message":"ENOENT: no such file or directory, scandir '/home/mikaela/.var/app/chat.delta.desktop/config/DeltaChat/Partitions'","errno":-2,"code":"ENOENT","syscall":"scandir","path":"/home/mikaela/.var/app/chat.delta.desktop/config/DeltaChat/Partitions"}
2022-06-03T15:34:39.319Z    main/index              INFO    ""  "cwd /home/mikaela/.var/app/chat.delta.desktop/config/DeltaChat/accounts"
2022-06-03T15:34:40.167Z    main/deltachat          INFO    ""  "Ready, starting accounts io..."
2022-06-03T15:34:40.176Z    main/deltachat          INFO    ""  "Started accounts io."
2022-06-03T15:34:40.373Z    main/menu               INFO    ""  "rebuilding menu with locale en"
2022-06-03T15:34:40.802Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/sql.rs:312: Opened database PathBuf { inner: \"/home/mikaela/.var/app/chat.delta.desktop/config/DeltaChat/accounts/63ae7f5f04674fbd8cf78724a505d3bc/dc.db\" }."
2022-06-03T15:34:40.816Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/context.rs:198: starting IO"
2022-06-03T15:34:40.816Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/scheduler.rs:67: starting inbox loop"
2022-06-03T15:34:40.816Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:753: loading job for Imap-thread"
2022-06-03T15:34:40.816Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/scheduler.rs:255: starting simple loop for configured_mvbox_folder"
2022-06-03T15:34:40.816Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/scheduler.rs:292: starting smtp loop"
2022-06-03T15:34:40.816Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:753: loading job for Smtp-thread"
2022-06-03T15:34:40.817Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/scheduler.rs:453: scheduler is running"
2022-06-03T15:34:40.817Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/scheduler.rs:330: smtp fake idle - started"
2022-06-03T15:34:41.140Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap.rs:672: No new emails in folder INBOX"
2022-06-03T15:34:41.140Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap.rs:672: No new emails in folder DeltaChat"
2022-06-03T15:34:41.140Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap/scan_folders.rs:27: Starting full folder scan"
2022-06-03T15:34:41.390Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap/idle.rs:57: DeltaChat: Idle entering wait-on-remote state"
2022-06-03T15:34:42.653Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap.rs:825: 2 mails read from \"Junk\"."
2022-06-03T15:34:43.290Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap/idle.rs:73: Idle has NewData ResponseData { raw: 4096, response: MailboxData(Exists(61)) }"
2022-06-03T15:34:43.295Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap.rs:1586: ignoring unsolicited response Other(ResponseData { raw: 4096, response: Data { status: Ok, code: Some(CopyUid(1654265362, [UidRange(35..=36)], [UidRange(63..=64)])), information: Some(\"Moved UIDs.\") } })"
2022-06-03T15:34:43.296Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap.rs:1586: ignoring unsolicited response Expunge(3)"
2022-06-03T15:34:43.296Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap.rs:1586: ignoring unsolicited response Expunge(2)"
2022-06-03T15:34:43.296Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap.rs:1586: ignoring unsolicited response Recent(0)"
2022-06-03T15:34:43.410Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap.rs:672: No new emails in folder INBOX"
2022-06-03T15:34:43.664Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap/idle.rs:57: INBOX: Idle entering wait-on-remote state"
2022-06-03T15:34:43.702Z    main/deltachat/login    INFO    ""  "Ready, starting io..."
2022-06-03T15:34:43.702Z    main/state              INFO    ""  "Saving state to /home/mikaela/.var/app/chat.delta.desktop/config/DeltaChat/config.json"
2022-06-03T15:34:44.010Z    main/deltachat/login    INFO    ""  "dc_get_info"   {"arch":"64","bcc_self":"1","blobdir":"/home/mikaela/.var/app/chat.delta.desktop/config/DeltaChat/accounts/63ae7f5f04674fbd8cf78724a505d3bc/dc.db-blobs","bot":"0","configured_mvbox_folder":"DeltaChat","configured_sentbox_folder":"<unset>","database_dir":"/home/mikaela/.var/app/chat.delta.desktop/config/DeltaChat/accounts/63ae7f5f04674fbd8cf78724a505d3bc/dc.db","database_encrypted":"false","database_version":"85","delete_device_after":"0","delete_server_after":"2419200","deltachat_core_version":"v1.76.0","display_name":"Aminda","download_limit":"0","e2ee_enabled":"1","entered_account_settings":"delta@aminda.eu imap:delta@aminda.eu:***:mail.gandi.net:0:cert_automatic smtp:unset:0:mail.gandi.net:0:cert_automatic 0","fetch_existing_msgs":"1","fingerprint":"FC885C50E8DEC812EA0678B65ED6F410C6F9D65E","folders_configured":"3","is_configured":"1","journal_mode":"wal","key_gen_type":"0","last_housekeeping":"1654265804","level":"awesome","mdns_enabled":"1","media_quality":"0","messages_in_contact_requests":"0","mvbox_move":"1","num_cpus":"2","number_of_chat_messages":"60","number_of_chats":"4","number_of_contacts":"2","only_fetch_mvbox":"0","private_key_count":"1","public_key_count":"3","quota_exceeding":"0","scan_all_folders_debounce_secs":"60","selfavatar":"<unset>","send_sync_msgs":"0","sentbox_move":"0","sentbox_watch":"0","show_emails":"1","socks5_enabled":"0","sqlite_version":"3.36.0","uptime":"0h 0m 4s","used_account_settings":"delta@aminda.eu imap:delta@aminda.eu:***:mail.gandi.net:143:cert_strict smtp:delta@aminda.eu:***:mail.gandi.net:587:cert_strict AUTH_NORMAL 0x4","webrtc_instance":"<unset>"}
2022-06-03T15:34:44.014Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/context.rs:198: starting IO"
2022-06-03T15:34:44.014Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/context.rs:200: IO is already running"
2022-06-03T15:34:44.014Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/dc_receive_imf.rs:89: Receiving message, folder=DeltaChat, seen=false..."
2022-06-03T15:34:44.014Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/chat.rs:3249: device-message changelog-version-1.28.0-version1 already added"
2022-06-03T15:34:44.014Z    core/event              WARNING ""  1   "DC_EVENT_WARNING"  0   "deltachat-ffi/src/lib.rs:269: invalid stock message id 81"
2022-06-03T15:34:44.289Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/e2ee.rs:288: Detected Autocrypt-mime message"
2022-06-03T15:34:44.322Z    core/event              WARNING ""  1   "DC_EVENT_WARNING"  0   "src/mimeparser.rs:672: Ignoring nested protected headers"
2022-06-03T15:34:44.837Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/dc_receive_imf.rs:119: received message has Message-Id: Mr.JBhg_3zn02_.HZdxub7SV6j@hispanilandia.net"
2022-06-03T15:34:44.837Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/dc_receive_imf.rs:1968: not creating ad-hoc group: too few contacts"
2022-06-03T15:34:46.631Z    main/state              INFO    ""  "Saving state to /home/mikaela/.var/app/chat.delta.desktop/config/DeltaChat/config.json"
2022-06-03T15:34:46.632Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/dc_receive_imf.rs:1191: Message has 1 parts and is assigned to chat #Chat#13."
2022-06-03T15:34:46.845Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/dc_receive_imf.rs:89: Receiving message, folder=DeltaChat, seen=false..."
2022-06-03T15:34:46.845Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/e2ee.rs:288: Detected Autocrypt-mime message"
2022-06-03T15:34:46.846Z    core/event              WARNING ""  1   "DC_EVENT_WARNING"  0   "src/mimeparser.rs:672: Ignoring nested protected headers"
2022-06-03T15:34:46.846Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/dc_receive_imf.rs:119: received message has Message-Id: Mr.C5HTeEjtGWl.hj1wiQrMOnu@hispanilandia.net"
2022-06-03T15:34:46.846Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/dc_receive_imf.rs:1968: not creating ad-hoc group: too few contacts"
2022-06-03T15:34:46.846Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/dc_receive_imf.rs:1191: Message has 1 parts and is assigned to chat #Chat#13."
2022-06-03T15:34:47.112Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap.rs:825: 2 mails read from \"DeltaChat\"."
2022-06-03T15:34:47.113Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/message.rs:1337: Seen message Msg#82."
2022-06-03T15:34:47.114Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:191: saving job for Imap-thread: Job { job_id: 0, action: MarkseenMsgOnImap, foreign_id: 82, desired_timestamp: 1654270486, added_timestamp: 1654270486, tries: 0, param: Params { inner: {} } }"
2022-06-03T15:34:47.114Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:718: interrupt: imap"
2022-06-03T15:34:47.114Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap/idle.rs:83: Idle wait was interrupted"
2022-06-03T15:34:47.115Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:753: loading job for Imap-thread"
2022-06-03T15:34:47.115Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:564: Inbox-job #19, action MarkseenMsgOnImap started..."
2022-06-03T15:34:47.115Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/message.rs:1337: Seen message Msg#83."
2022-06-03T15:34:47.115Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:191: saving job for Imap-thread: Job { job_id: 0, action: MarkseenMsgOnImap, foreign_id: 83, desired_timestamp: 1654270486, added_timestamp: 1654270486, tries: 0, param: Params { inner: {} } }"
2022-06-03T15:34:47.115Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:633: Inbox begin immediate try 0 of job #19, action MarkseenMsgOnImap"
2022-06-03T15:34:47.115Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:718: interrupt: imap"
2022-06-03T15:34:47.502Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap.rs:1434: Marking message DeltaChat/63 as seen..."
2022-06-03T15:34:47.502Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:659: Finished immediate try 0 of job #19, action MarkseenMsgOnImap"
2022-06-03T15:34:47.502Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:614: Inbox removes job #19, action MarkseenMsgOnImap as it succeeded"
2022-06-03T15:34:47.628Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap/idle.rs:57: DeltaChat: Idle entering wait-on-remote state"
2022-06-03T15:34:47.628Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap/idle.rs:73: Idle has NewData ResponseData { raw: 4096, response: Fetch(60, [ModSeq(99), Flags([\"\\\\Seen\"])]) }"
2022-06-03T15:34:47.831Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:753: loading job for Imap-thread"
2022-06-03T15:34:47.831Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:564: Inbox-job #20, action MarkseenMsgOnImap started..."
2022-06-03T15:34:47.831Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:633: Inbox begin immediate try 0 of job #20, action MarkseenMsgOnImap"
2022-06-03T15:34:47.831Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap.rs:1434: Marking message DeltaChat/64 as seen..."
2022-06-03T15:34:47.950Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:659: Finished immediate try 0 of job #20, action MarkseenMsgOnImap"
2022-06-03T15:34:47.950Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:614: Inbox removes job #20, action MarkseenMsgOnImap as it succeeded"
2022-06-03T15:34:47.960Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap.rs:825: 0 mails read from \"DeltaChat\"."
2022-06-03T15:34:48.081Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:753: loading job for Imap-thread"
2022-06-03T15:34:48.210Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap.rs:672: No new emails in folder INBOX"
2022-06-03T15:34:48.269Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap/idle.rs:57: DeltaChat: Idle entering wait-on-remote state"
2022-06-03T15:34:48.380Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap/idle.rs:40: skip idle, got interrupt InterruptInfo { probe_network: false }"
2022-06-03T15:34:48.380Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/job.rs:753: loading job for Imap-thread"
2022-06-03T15:34:48.490Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap.rs:825: 0 mails read from \"INBOX\"."
2022-06-03T15:34:48.749Z    core/event              INFO    ""  1   "DC_EVENT_INFO" 0   "src/imap/idle.rs:57: INBOX: Idle entering wait-on-remote state"
2022-06-03T15:37:46.276Z    main/state              INFO    ""  "Saving state to /home/mikaela/.var/app/chat.delta.desktop/config/DeltaChat/config.json"
2022-06-03T15:37:46.312Z    main/index              INFO    ""  "Quitting now. Bye."
Simon-Laux commented 2 years ago

does non flatpak versions work? also flatpak issue tracker is here, if it only occurs on flatpak: https://github.com/flathub/chat.delta.desktop/issues

Mikaela commented 2 years ago

I am not sure on non-flatpak versions. The appimage works in firejail (firejail --appimage '--private=~/.config/firejailed/deltachat/' /home/aminda/.local/appimages/deltachat --enable-features=UseOzonePlatform,WaylandWindowDecorations,WebRTCPipeWireCapturer --ozone-platform=wayland), but that may be caused by firejail.

I don't feel comfortable downloading random binaries especially due to https://github.com/deltachat/deltachat-desktop/issues/1504 and I am not a fan of appimage in general.

I additionally get the impression that there is no rpm repository and I would need to keep updating it manually instead of being able to rely on package manager?

dotlambda commented 2 years ago

I additionally get the impression that there is no rpm repository and I would need to keep updating it manually instead of being able to rely on package manager?

Do you want to add a package to Fedora's (?) repositories? We have a Delta Chat group for helping people package Delta Chat.

Mikaela commented 2 years ago

I don't have prior packaging experience or bandwidth currently for learning and maintaining a package, sorry.

I think flatpak is currently the best universal packaging format on Linux.

Simon-Laux commented 1 year ago

lets reopen if it still occurs, but on https://github.com/flathub/chat.delta.desktop/issues unless it's confirmed that it is not only an issue in the flatpak release. Also a year already passed, maybe it got fixed with one of the electron upgrades

Mikaela commented 10 months ago

Still happening.

└┌(%:~)┌- LANG=en flatpak run chat.delta.desktop --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations 
[2:0112/103724.802734:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Logfile: /home/aminda/.var/app/chat.delta.desktop/config/DeltaChat/logs/2024-01-12-10-37-25.log
LaunchProcess: failed to execvp:
xdg-settings
LaunchProcess: failed to execvp:
xdg-settings
LaunchProcess: failed to execvp:
xdg-settings
LaunchProcess: failed to execvp:
xdg-settings
LaunchProcess: failed to execvp:
xdg-settings
LaunchProcess: failed to execvp:
xdg-settings
[2:0112/103725.188858:ERROR:wayland_connection.cc(195)] Failed to connect to Wayland display: No such file or directory (2)
[2:0112/103725.188872:ERROR:ozone_platform_wayland.cc(242)] Failed to initialize Wayland platform
[2:0112/103725.188876:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.
Mikaela commented 10 months ago

If I understand @muelli correctly from the other issue tracker correctly, I think this should be reopened here.

muelli commented 8 months ago

https://github.com/flathub/chat.delta.desktop/pull/124#pullrequestreview-1880141801 suggests that electron is too old.