Skip to content

Commit

Permalink
Updated with try except
Browse files Browse the repository at this point in the history
  • Loading branch information
oktay454 authored Nov 9, 2024
1 parent 142cb4e commit 1a2541a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions usr/lib/hypnotix/hypnotix.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,10 @@ def __init__(self, application):

# Dark mode manager
# keep a reference to it (otherwise it gets randomly garbage collected)
# This part prevents it from running on Debian 12.
#self.dark_mode_manager = XApp.DarkModeManager.new(prefer_dark_mode=True)
try:
self.dark_mode_manager = XApp.DarkModeManager.new(prefer_dark_mode=True)
except Exception:
pass

# Menubar
accel_group = Gtk.AccelGroup()
Expand Down

0 comments on commit 1a2541a

Please sign in to comment.