从Ubuntu终端启动gedit时的警告


9

从终端启动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

Answers:



1

通常,这些警告表明应用程序开发不佳,但是程序员通常会忽略它们。这不是一个关键问题,如果程序按预期工作,则可以放心忽略。

顺便说一句,问题似乎出在未px在其CSS中声明的主题。您可以编辑第siderbar.css40和22 gtk-wirdgets.css行中的并进行更正。在2264、2237和138行中。存在多个实例。那是因为“主题解析错误”,似乎您也错过了SessionManager软件包,而GtkSource不是版本3。


我在哪里可以找到sidebar.css和gtk-wirdgets.css
Muddassir Nazir,

1
您可以用来locate sidebar.css快速找到它。请考虑主题名称,以免修改某些主题。
Braiam

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.