Skip to content

[Bug] WakaTime Linux AppImage crashes on Wayland (GNOME) due to missing XWinWaylandExtension DBus object #118

@manassehgitau

Description

@manassehgitau

Description

The WakaTime Linux desktop AppImage crashes immediately on startup when running under GNOME Wayland.
Even when launched with --no-sandbox, the application panics and exits due to a missing GNOME Shell Wayland DBus extension.

This appears to be caused by an unconditional unwrap() call in the Wayland integration code when the expected DBus object does not exist.


Environment

  • OS: Linux (Ubuntu 24.04 LTS)

  • Desktop Environment: GNOME

  • Session Type: Wayland

  • WakaTime App: wakatime-linux-x86_64.AppImage

  • Launch command:

    ./wakatime-linux-x86_64.AppImage --no-sandbox

Steps to Reproduce

  1. Log into a GNOME Wayland session

  2. Download the WakaTime Linux AppImage

  3. Make it executable:

    chmod +x wakatime-linux-x86_64.AppImage
  4. Run the app:

    ./wakatime-linux-x86_64.AppImage --no-sandbox

Expected Behavior

The application should start normally and begin tracking activity or gracefully fall back if a Wayland extension is unavailable.


Actual Behavior

The app crashes immediately with a panic.


Error Output

thread '<unnamed>' panicked at x-win-rs/src/linux/api/wayland_extension_api.rs:206:6:
called `Result::unwrap()` on an `Err` value: MethodError(
  "org.freedesktop.DBus.Error.UnknownMethod",
  Some("Object does not exist at path “/org/gnome/Shell/Extensions/XWinWaylandExtension”")
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions