linuxmint / hypnotix

An M3U IPTV Player
1.25k stars 168 forks source link

V. 3.3: Pre-set to dark mode causes problems in opensuse #278

Closed tabascosw closed 1 year ago

tabascosw commented 1 year ago

The new preferred setting to dark mode causes issues in my openSuse TW, the program would not start. Disabling that setting makes the program run again. Here is the line from usr/lib/hypnotix/hypnotix.py that I had to change. Not sure if others are effected as well. Setting it just to false won't work, Hypnotix will then not start.

   ##self.dark_mode_manager = XApp.DarkModeManager.new(prefer_dark_mode=True)

The previous version with the dark mode switch works without an issue.

Maybe I am missing a lib, but all requirements that are mentioned have been met.

mtwebster commented 1 year ago

What version of libxapp are you using? You need 2.6. What happens if you run hypnotix from a terminal?

tabascosw commented 1 year ago

Currently only version 2.4 is available and this is probably the issue. Starting from a terminal:

AttributeError: 'gi.repository.XApp' object has no attribute 'DarkModeManager'

zveliki commented 1 year ago

Same thing on Manjaro, I had to comment out this line in /usr/lib/hypnotix/hypnotix.py:

self.dark_mode_manager = XApp.DarkModeManager.new(prefer_dark_mode=True)

Dark mode is still working fine.

mtwebster commented 1 year ago

https://github.com/linuxmint/hypnotix/commit/fd22e655f819d907754b857ebe3b964f709d3ac1