Download the latest OpenD package from:
https://www.moomoo.com/download/OpenAPI
After downloading the Ubuntu .tar.gz file, follow the steps below.
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.desktopThe icon is stored in:
~/.local/share/icons/moomoo.pngReplace 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/This is needed for a fresh install.
mkdir -p ~/Applications/moomoo_OpenD-GUIFor updates, remove the old AppImage first.
rm -f ~/Applications/moomoo_OpenD-GUI/*.AppImageFor a fresh install, this command is also safe. It will do nothing if there is no old AppImage.
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/chmod +x ~/Applications/moomoo_OpenD-GUI/*.AppImageThis step is only needed once. You can skip it on future updates.
First, make sure the icon folder exists:
mkdir -p ~/.local/share/iconsThen 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.pngThe icon will be saved here:
~/.local/share/icons/moomoo.pngOpen the desktop entry file:
nano ~/.local/share/applications/moomoo-opend.desktopUse 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_OpenDReplace VERSION with the actual version number.
Example:
Exec=/home/ssyok/Applications/moomoo_OpenD-GUI/moomoo_OpenD-GUI_10.8.6808_Ubuntu18.04.AppImageImportant lines:
Icon=/home/ssyok/.local/share/icons/moomoo.png
StartupWMClass=moomoo_OpenDThe 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
chmod +x ~/.local/share/applications/moomoo-opend.desktopupdate-desktop-database ~/.local/share/applications/You should now be able to search for:
moomoo OpenD
from the Ubuntu launcher.
The icon should show correctly in both:
- The launcher search result
- The running app dock/taskbar icon
Only the version number changes in:
- The
.tar.gzfilename - The extracted folder name
- The AppImage folder name
- 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
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