Reputation: 569
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?
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
Upvotes: 1
Views: 555
Reputation:
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.
Upvotes: 0
Reputation: 983
I my case the solution was doing the following steps:
Find where the file thg.svg
is located:
$ locate thg.svg
/home/marcin/.local/share/pixmaps/tortoisehg/icons/scalable/apps/thg.svg
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)
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/
Restart thg
Upvotes: 1
Reputation: 383
You need to install python-pyqt5.qtsvg
to make the toolbar icons show up.
Upvotes: 0