帮酷LOGO
0 0 评论
  • 显示原文与译文双语对照的内容
文章标签:命令行  Ubuntu  COM  COMM  TERM  launching  警告  Gedit  

问题:

我正从终端启动gedit时遇到这些警告。 每次启动 gedit,但每次启动gedit时,都会出现以下警告:


(gedit:3830): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:138:20: Not using units is deprecated. Assuming 'px'.



(gedit:3830): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:138:24: Not using units is deprecated. Assuming 'px'.



(gedit:3830): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:138:28: Not using units is deprecated. Assuming 'px'.



(gedit:3830): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:138:32: Not using units is deprecated. Assuming 'px'.



(gedit:3830): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2237:26: 'none' is not a valid color name



(gedit:3830): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2264:20: Not using units is deprecated. Assuming 'px'.



(gedit:3830): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2264:24: Not using units is deprecated. Assuming 'px'.



(gedit:3830): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2264:28: Not using units is deprecated. Assuming 'px'.



(gedit:3830): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2264:32: Not using units is deprecated. Assuming 'px'.



(gedit:3830): Gtk-WARNING **: Theme parsing error: sidebar.css:22:20: Not using units is deprecated. Assuming 'px'.



(gedit:3830): Gtk-WARNING **: Theme parsing error: sidebar.css:40:18: Not using units is deprecated. Assuming 'px'.



(gedit:3830): Gtk-WARNING **: Theme parsing error: sidebar.css:40:20: Not using units is deprecated. Assuming 'px'.



** (gedit:3830): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found



(gedit:3830): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any. service files



(gedit:3830): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any. service files




回答 1:

更新 gir1.2-gtksource-3.0 已经解决了问题;错误不再出现。


sudo apt-get install gir1.2-gtksource-3.0




回答 2:

通常这些警告表明应用程序的开发很糟糕,但通常被程序员忽略。 不是一个关键问题,如果程序按照预期的方式运行,则可以安全地忽略。

另外,问题似乎是在他们的css中没有声明 px的主题。 你可以去编辑 siderbar.css 并在 40和 22行进行修改。 在 gtk-wirdgets.css 行 2264,2237和 138中。 有多个实例。对于 "主题解析错误",似乎你错过了SessionManager包,GtkSource不是版本 3。


回答 3:

我认为使用 gksudo的instad将会阻止这些警告从中 !

看一下gksudo和sudo之间的差异




文章标签:COM  COMM  Comma  命令行  Ubuntu  TERM  运行  launching  

Copyright © 2011 HelpLib All rights reserved.    知识分享协议 京ICP备05059198号-3  |  如果智培  |  酷兔英语