'TortoiseHG icons missing (Ubuntu Linux 16)

Running on Ubuntu 16.04.2 LTS, with Python 2 (and I also have Python 3 installed), TortoiseHG used to show icons and text in toolbar, and I'm not sure when it happened, but now it does not show text or icons. I have install 3.8.3, but this changed nothing. Are there any other suggestions?

thg missing icons

EDIT:

I recently installed QT (https://wiki.qt.io/Install_Qt_5_on_Ubuntu), thinking that I may use it. THG is also designed with QT. I also installed QGIS (http://www.qgis.org/en/site/forusers/download.html), and it too IS MISSING IT'S ICONS! [UPDATE]: I downloaded, built and installed QGIS from source and this corrected the QGIS problem.

EDIT2:

I followed suggestions here: https://bugs.launchpad.net/ubuntu/+source/appmenu-qt5/+bug/1307619 which said to uninstall appmenu-qt5... but, to no avail



Solution 1:[1]

I my case the solution was doing the following steps:

  1. Find where the file thg.svg is located:

    $ locate thg.svg
    /home/marcin/.local/share/pixmaps/tortoisehg/icons/scalable/apps/thg.svg
    
  2. Find where thg is looking for icons:

    $ strace thg 2>&1 | grep thg.svg.*ENOENT
    access("/usr/local/share/pixmaps/tortoisehg/icons/scalable/actions/thg.svg", F_OK) = -1 ENOENT (No such file or directory)
    access("/usr/local/share/pixmaps/tortoisehg/icons/scalable/apps/thg.svg", F_OK) = -1 ENOENT (No such file or directory)
    access("/usr/local/share/pixmaps/tortoisehg/icons/scalable/status/thg.svg", F_OK) = -1 ENOENT (No such file or directory)
    
  3. Copy icons to the proper location:

    $ sudo mkdir -p /usr/local/share/pixmaps
    $ sudo cp -R /home/marcin/.local/share/pixmaps/tortoisehg /usr/local/share/pixmaps/
    
  4. Restart thg

Solution 2:[2]

You need to install python-pyqt5.qtsvg to make the toolbar icons show up.

Solution 3:[3]

It might be a weird config/cache issue, in which case you could try clearing the cache: rm -rf ~/.cache/tortoisehg or whatever the program's cache folder is called, then restart the program.

If that doesn't work you could try to uninstall and reinstall (assuming you installed from a repo)

sudo apt purge tortoisehg;
sudo apt autoremove --purge;
sudo apt update;
sudo apt install tortoisehg;

Or you could always uninstall and then build from source, as documented by toroisehg on their site: Running TortoiseHg 2.x from source on Linux


If you want to do a full manual uninstall, you could try looking for TortoiseHG files and deleting them manually with locate tortoise which will return file paths, rm -rf [path] for each path.

Then try reinstalling.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Marcin Raczy?ski
Solution 2
Solution 3 Laurel