skip to Main Content

Fix Missing Toolbar Icon in ReText

ReText is a simple but powerful text editor for Markdown and reStructuredText. It is written in Python using QT Libraries, with that said you need to have QT installed in your system in order to run ReText (Description copy pasted from ReText website, I’m lazy I know :D). I’ve been using it previously on my Ubuntu system with GNOME desktop without problem at all, however when I installed and run it on my Linux Mint LXDE 12 system, the toolbar icons is missing and not displayed at all, only texts are displayed as you can see on the screenshot below.

Missing Toolbar Icons in ReText

Missing Toolbar Icons in ReText

Apparently as far as I know, this problem is caused by a bug in QT related to Icons issue, where as of the time when I wrote this post there is no update to fix the problem yet. However, the missing toolbar icons problem in ReText can be manually fixed easily. Now before you proceed further, I’ve only tested this fix in Linux Mint LXDE 12 so there is no guarantee that this fix will work or is applicable in other linux distros, although I’ve read that this fix can also be applied on some other distros such as Xubuntu, so just give it a spin.

Just a head up before you try this solution, it relies on gconftool-2 or gsettings in order to fix the problem, so if your system does not have it, you might want to find an alternative or other ways to fix the problem.

But to save your time from trying this fix, take note that your system need to have gconftool-2 or gsettings in order for this fix to work.

So, fire up your favorite terminal and enter the following command:

or you can also enter the following command but you don’t need to enter both:

Whatever command that you enter, the Icon Theme name that your system/desktop currently use will be printed out in the terminal, the only difference between the two commands is that the later will enclose the Icon Theme name with single apostrophe. Like so:

Result of the first command:

gconftool-2 command result

Result of the second command:

gsettings command result

So take note of the Icon Theme name printed out on the terminal (never mind the single apostrophe) or copy paste it from the terminal and enter the following command into the terminal:

Note: Notice that from the command above we are going to edit ReText configuration file, hence if the folder/directory and configuration file does not exists just create them, but make sure that you enter the correct name for both the directory name and configuration file, and since it’s linux, unlike windows it’s case-sensitive.

By default the configuration file should be blank, but if for some reason it contain entries, nevermind the contents inside it. To fix the problem, add the following lines into the configuration file: (if it already exists just modify the entry)

For example, earlier my current Icon Theme name is ‘Mint-X-Dark’ hence I would enter the following lines:

That’s it! Save the file, close the text editor and open ReText. The icon should be displayed properly this time.

Missing Toolbar Icons in ReText Fixed

Missing Toolbar Icons in ReText Fixed

  • Dmitry Shachnev

    Note that since version 3.0.4, ReText automatically loads the icon theme name from gconf, so it works out-of-the box in Linux Mint LXDE.

    …And it was released the same day you posted this article 🙂

  • Pingback: 修复ReText菜单图标消失的错误 | 上呀么上好佳()

  • Misha Penkov

    Thanks for this write-up. I’m using Ubuntu 12.04 LTS, and the retext package still suffers from the missing icons problem.

  • Julien Dutant

    Thanks for the post! In Ubuntu 13.04 the problem arises again. On that system (default gnome install of Ubuntu), gconftool-2 and gesettings give different results (“gnome” and “ubuntu-mono-dark” respectively). Only the second one helps ReText find the icons.

  • Y8

    good post, fix missing the toolbar is so cute. manay way to control it

  • Robert Havasy

    Thank you so much for this … driving me nuts in Ubuntu 13.04. Confirmed that the second command worked and gave ‘ubuntu-mono-light’ as theme. Edited .conf file and all is working again.

  • Fix Missing Toolbar Icon in ReText is very important for me now, my work really need to understand the way to complete

  • Fix Missing Toolbar Icon in ReText is very important for me now,

  • thank has share

  • mlgoodson

    Thanks. One less irriatation in my world. Cheers.

  • Pingback: ReTextのメニューバーのアイコンが表示されない | Anagram Name()

  • foo

    great, thanks! i had to put iconTheme in a new line though. 🙂

  • stoive

    Just had the same problem with retext on ubuntu 14.04. Same problem as

    Julien Dutantbelow. The resolution was to put the icon theme down as “ubuntu-mono-dark” instead of “gnome”.

    By the way, the icon theme can be changed from the preference menu.

  • simple

    Thank you so much!

  • foobar

    It’s work on Archlinux/i3-wm. Thank you!

  • Pingback: ReText のアイコンが見えなくなっていたのを修正 | matoken's meme()

Back To Top
Close search