We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0638a8 commit b961ce8Copy full SHA for b961ce8
1 file changed
system-config-printer.py
@@ -47,6 +47,16 @@
47
print ("This is a graphical application and requires DISPLAY to be set.")
48
sys.exit (1)
49
50
+# Optional dependency, requires libhandy >= 1.5
51
+gi.require_version('Handy', '1')
52
+try:
53
+ from gi.repository import Handy
54
+ Handy.init()
55
+ # Support GNOME 42 dark mode
56
+ Handy.StyleManager.get_default().set_color_scheme(Handy.ColorScheme.PREFER_LIGHT)
57
+except:
58
+ pass
59
+
60
def show_help():
61
print ("\nThis is system-config-printer, " \
62
"a CUPS server configuration program.\n\n"
0 commit comments