Avvertenze durante l'avvio di gedit dal terminale Ubuntu


9

Sto affrontando questi avvertimenti mentre lancio gedit dal mio terminale. Alla fine gedit si avvia, ma con queste righe di avviso ogni volta che avvio 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

Risposte:


14

L'aggiornamento di gir1.2-gtksource-3.0 ha risolto il problema per me; gli errori non compaiono più.

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

Sì, ha funzionato Mr.Kyle Chadha ...
— Muddassir Nazir,

1

Normalmente questi avvisi indicano il cattivo sviluppo dell'applicazione, ma sono normalmente ignorati dai programmatori. Non è un problema critico e può essere tranquillamente ignorato se il programma funziona come previsto.

A proposito, il problema sembra essere con il tema che non viene dichiarato pxnel loro CSS. È possibile andare a modificare siderbar.csse apportare le correzioni nella riga 40 e 22. Nella gtk-wirdgets.cssriga 2264, 2237 e 138. Vi sono più istanze. Questo è per "Errore di analisi del tema" , sembra anche che ti manchi il pacchetto SessionManager e GtkSource non è la versione 3.


dove posso trovare sidebar.css e gtk-wirdgets.css
— Muddassir Nazir

1
Puoi usarlo locate sidebar.cssper trovarlo velocemente. Prendi in considerazione il nome del tuo tema in modo da non modificare alcun tema che vada bene.
— Braiam,

Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.