[Ubuntu]18报错 Gtk-Message: Failed to load module "unity-gtk-module"

安装pycharm之后,通过命令sh pycharm.sh启动pycharm报错如下:

解决办法:

 sudo apt-get install unity-gtk3-module

如果之后还有问题,尝试下面的命令

Does sudo apt-get install unity-gtk3-module fix the problem? 
If not, try apt-cache search unity-gtk-module (which suggests that there is also an unity-gtk2-module).
What program are you trying to run? From where did you obtain it? And have you satisfied its' dependencies? – Elliott Frisch Mar 5 '16 at 18:27

参考文档:

 Gtk-Message: Failed to load module "unity-gtk-module"

原文地址:https://www.cnblogs.com/kaerxifa/p/12217828.html