realdtn2 / zalo-linux-unofficial-2024

Unofficial Zalo Linux Port (x86_64)
3 stars 0 forks source link

Zalo for Linux (Unofficial Port)

Information

THIS IS NOT USING THE ZALO WEBSITE,IT IS PORTED DIRECTLY FROM THE ZALO MAC DESKTOP CLIENT YOU CAN'T CALL

This project is an unofficial port of the MacOS version of Zalo to Linux. The porting process involved extracting the .dmg file from the MacOS version and locating the app.asar file in the directory, which is typically found in /Applications/YourAppName.app/Contents/Resources. The following steps were taken:

  1. Extracted app.asar with the command:
    asar extract app.asar app
  2. Navigated to the extracted directory and ran Zalo using Electron version 22.3.27. Note that using newer versions of Electron result in errors. The command to run Zalo is:
    electron .

Additionally, install.sh is used to add a tray icon using Python.

Working on Nobara 39 KDE Plasma,Ubuntu 22.04 XFCE4

Screenshot_20240809_053634 Screenshot_20240809_054034

Screenshot_20240809_053806 Screenshot_20240809_053944

Installation

Python is required to run the tray icon script.

To install Zalo for Linux, you can choose one of these two:

Recommended

sh -c "$(curl -sSL https://raw.githubusercontent.com/realdtn2/zalo-linux-unofficial/main/install_curl.sh)"

or

git clone https://github.com/realdtn2/zalo-linux-unofficial
cd zalo-linux-unofficial
chmod +x install.sh
./install.sh

Zalo will be installed to ~/.local/share/Zalo

Fixes

Python3: Namespace AppIndicator3 not available

sudo apt install gir1.2-appindicator3-0.1

[855265:0809/185712.193181:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/ubuntu/.local/share/Zalo/electron-v22.3.27-linux-x64/chrome-sandbox is owned by root and has mode 4755.

sudo chown root $HOME/.local/share/Zalo/electron-v22.3.27-linux-x64/chrome-sandbox
sudo chmod 4755 $HOME/.local/share/Zalo/electron-v22.3.27-linux-x64/chrome-sandbox

Bugs

There will be some bugs, as I don't have an understanding of how electron work, I won't be able to fix any bugs.