Skip to content

Instantly share code, notes, and snippets.

@szeyu
Last active July 2, 2026 03:29
Show Gist options
  • Select an option

  • Save szeyu/9b748bbe8bbcaf04251605605f45d3aa to your computer and use it in GitHub Desktop.

Select an option

Save szeyu/9b748bbe8bbcaf04251605605f45d3aa to your computer and use it in GitHub Desktop.
Install Moomoo OpenD

Installing or Updating moomoo OpenD GUI on Ubuntu

Download the latest OpenD package from:

https://www.moomoo.com/download/OpenAPI

After downloading the Ubuntu .tar.gz file, follow the steps below.


Folder Assumptions

The downloaded file is stored in:

~/Downloads/AppImageSpam/

The installed AppImage is stored in:

~/Applications/moomoo_OpenD-GUI/

The desktop entry is stored in:

~/.local/share/applications/moomoo-opend.desktop

The icon is stored in:

~/.local/share/icons/moomoo.png

1. Extract the tar.gz

Replace VERSION with the actual version number.

tar -xzf ~/Downloads/AppImageSpam/moomoo_OpenD_VERSION_Ubuntu18.04.tar.gz -C ~/Downloads/AppImageSpam/

Example:

tar -xzf ~/Downloads/AppImageSpam/moomoo_OpenD_10.8.6808_Ubuntu18.04.tar.gz -C ~/Downloads/AppImageSpam/

2. Create the Applications folder

This is needed for a fresh install.

mkdir -p ~/Applications/moomoo_OpenD-GUI

3. Delete the old AppImage

For updates, remove the old AppImage first.

rm -f ~/Applications/moomoo_OpenD-GUI/*.AppImage

For a fresh install, this command is also safe. It will do nothing if there is no old AppImage.


4. Copy the new AppImage into the Applications folder

Replace VERSION with the actual version number.

cp ~/Downloads/AppImageSpam/moomoo_OpenD_VERSION_Ubuntu18.04/moomoo_OpenD-GUI_VERSION_Ubuntu18.04/*.AppImage ~/Applications/moomoo_OpenD-GUI/

Example:

cp ~/Downloads/AppImageSpam/moomoo_OpenD_10.8.6808_Ubuntu18.04/moomoo_OpenD-GUI_10.8.6808_Ubuntu18.04/*.AppImage ~/Applications/moomoo_OpenD-GUI/

5. Make the AppImage executable

chmod +x ~/Applications/moomoo_OpenD-GUI/*.AppImage

6. Download the moomoo icon

This step is only needed once. You can skip it on future updates.

First, make sure the icon folder exists:

mkdir -p ~/.local/share/icons

Then download the icon:

curl -L "https://media.licdn.com/dms/image/sync/v2/D5627AQFjABVmpmIlAQ/articleshare-shrink_800/B56Z8YtmioHYAc-/0/1782826035959?e=2147483647&v=beta&t=P34_Jn2NhM-MhNSfMoX3OhRhjx4qanJd3LVMS_KpnvE" -o ~/.local/share/icons/moomoo.png

The icon will be saved here:

~/.local/share/icons/moomoo.png

7. Create or update the desktop entry

Open the desktop entry file:

nano ~/.local/share/applications/moomoo-opend.desktop

Use this template:

[Desktop Entry]
Name=moomoo OpenD
Comment=moomoo OpenD GUI
Exec=/home/ssyok/Applications/moomoo_OpenD-GUI/moomoo_OpenD-GUI_VERSION_Ubuntu18.04.AppImage
Icon=/home/ssyok/.local/share/icons/moomoo.png
Terminal=false
Type=Application
Categories=Finance;Utility;
StartupNotify=true
StartupWMClass=moomoo_OpenD

Replace VERSION with the actual version number.

Example:

Exec=/home/ssyok/Applications/moomoo_OpenD-GUI/moomoo_OpenD-GUI_10.8.6808_Ubuntu18.04.AppImage

Important lines:

Icon=/home/ssyok/.local/share/icons/moomoo.png
StartupWMClass=moomoo_OpenD

The Icon= line makes the moomoo icon appear in launcher search.

The StartupWMClass= line makes the running app use the same moomoo icon instead of showing the default round ring icon.

Save and exit:

Ctrl + O
Enter
Ctrl + X

8. Make the desktop entry executable

chmod +x ~/.local/share/applications/moomoo-opend.desktop

9. Refresh the launcher database

update-desktop-database ~/.local/share/applications/

10. Launch moomoo OpenD

You should now be able to search for:

moomoo OpenD

from the Ubuntu launcher.

The icon should show correctly in both:

  1. The launcher search result
  2. The running app dock/taskbar icon

What changes each update

Only the version number changes in:

  1. The .tar.gz filename
  2. The extracted folder name
  3. The AppImage folder name
  4. The AppImage filename in the Exec= line

The icon does not need to be downloaded again.

The StartupWMClass=moomoo_OpenD line should remain unchanged.

Example version:

10.8.6808

Update-only checklist

For future updates, usually repeat only these steps:

tar -xzf ~/Downloads/AppImageSpam/moomoo_OpenD_VERSION_Ubuntu18.04.tar.gz -C ~/Downloads/AppImageSpam/

rm -f ~/Applications/moomoo_OpenD-GUI/*.AppImage

cp ~/Downloads/AppImageSpam/moomoo_OpenD_VERSION_Ubuntu18.04/moomoo_OpenD-GUI_VERSION_Ubuntu18.04/*.AppImage ~/Applications/moomoo_OpenD-GUI/

chmod +x ~/Applications/moomoo_OpenD-GUI/*.AppImage

nano ~/.local/share/applications/moomoo-opend.desktop

update-desktop-database ~/.local/share/applications/

Inside the .desktop file, only update the Exec= line to the new AppImage filename.

Keep these lines unchanged:

Icon=/home/ssyok/.local/share/icons/moomoo.png
StartupWMClass=moomoo_OpenD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment