I've been trying for a while to set the GTK theme of the Mendeley desktop UI, without success. The reason I want to do this is because I am using a dark theme, and that Mendeley is unreadable (dark font on dark bg) with this theme. The two relevant sources of information I'm using are here and here.
They both basically say that calling an executable like so
$ GTK_THEME=MyFancyTheme my_stubborn_app
should override the default GTK theme for the current user, and that permanent theme changes can be integrated in the
.../share/my_stubborn_app.desktop by altering the
Exec=env GTK_THEME=MyFancyTheme /path/to/my_stubborn_app %u
None of these methods works in my case. The special things about Mendeley desktop UI on Ubuntu (Trusty Tahr 14.04, Mendeley UI v1.14 in my case) are:
- It comes as a standalone package with its own
libfolders and it uses Qt.
- The actual binary is in
lib/mendeleydesktop/libexec/mendeleydesktop.x86_64(for Ubuntu 64 bits) but cannot be called directly because it requires environment variables defined by the python script
mendeleydesktop.desktopfile (which allows having an icon in the Unity launcher) is overwritten by
mendeleydesktop.desktopfile is created/overwritten in
What I did so far was to edit
bin/install-mendeley-link-handler.sh so that the
.desktop file overwritten at each call would include the modified
Exec=env GTK_THEME... line. That doesn't seem to work. Can anyone help?