FangTian for Wayland and OpenHarmony Applications

The FangTian window engine integrates multiple application ecosystems, allowing Linux and OpenHarmony applications to run on openEuler simultaneously.

Wayland Application Support

Wayland Protocols

To support native Linux applications, FangTian is compatible with Wayland applications. Due to the complexity of Wayland protocols, currently, FangTian supports core, stable, and unstable protocols.

Application Running

  1. After starting the FangTian engine, start the SA of the Wayland adapter.

    shell
    mkdir -p ~/tmp
    sa_main /system/profile/ft/ft_wl.xml > ~/tmp/ftwlsa.log 2>&1 &
  2. Configure the Wayland environment.

    shell
    export XDG_SESSION_TYPE=wayland
    export WAYLAND_DISPLAY="wayland-0"
    export QT_QPA_PLATFORMTHEME=ukui
  3. Download and install Linux Wayland applications.

    shell
    sudo dnf install kylin-calculator deepin-terminal
  4. The following applications are installed:

OpenHarmony Application Support

ArkUI Framework

Currently, FangTian supports some ArkUI controls, such as texts, buttons, and images. Developers can develop Harmony applications using DevEco Studio.

Application Source Code

Installation and Running

  1. Copy the .hap file of the application from DevEco Studio to an openEuler directory, for example, ~/apps/tmp.

  2. Decompress the .hap file, for example, eletronicAlbum.hap.

    shell
    unzip eletronicAlbum.hap

    After the decompression, the application is in ~/apps/tmp/eletronicAlbum.

  3. After starting the FangTian engine, run the application.

    shell
    hap_executor ~/apps/tmp/eletronicAlbum
  4. The following window is displayed:

Constraints

  • Currently, ArkUI controls are not fully supported. Web and video controls are unavailable. You need to develop and port the NAPI interfaces.

  • ArkUI supports only the x86 architecture in this version.