Это также обходной путь, но вам не нужно применять его для каждого приложения.
Запишите это на свой .bashrc, и вы можете использовать эту оболочку с F12 (или выбрать другой ключ), чтобы подавить предупреждения:
# output filter
of() {
if [ -n "$*" ]; then
# write the real command to history without the prefix "of"
history -s "$*"
# catch the command output
errorMsg=$( $* 2>&1 )
# check if the command output contains not a GTK-Warning
if ! $(echo $errorMsg | grep -q 'Gtk-WARNING'); then
echo $errorMsg
fi
fi
}
# write the function "of" before every command if the user presses F12
bind '"\e[24~": "\e[1~ of \e[4~\n"'
Для Ubuntu 12.10 установите Gnome Tweak Tool и включите значки в Theme
Для Ubuntu 14.04 я не мог найти эту настройку ни в unity-tweak-tool, ни в gnome-tweak-tool. Хотя вы можете использовать gconf-editor, он не влияет на eclipse. Вместо этого работало для меня:
gsettings set org.gnome.desktop.interface menus-have-icons true
gsettings set org.gnome.desktop.interface buttons-have-icons true
В Ubuntu 16.04 используйте:
dconf write /org/gnome/desktop/interface/menus-have-icons true
dconf write /org/gnome/desktop/interface/buttons-have-icons true