Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'gi.repository.XApp' object has no attribute 'DarkModeManager' AND cannot resize vertical on some streams. #306

Open
SteveTinkers opened this issue Nov 18, 2023 · 0 comments

Comments

@SteveTinkers
Copy link

SteveTinkers commented Nov 18, 2023

 Traceback (most recent call last):

 File "/usr/lib/hypnotix/hypnotix.py", line 117, in activate window = MainWindow(self)

 File "/usr/lib/hypnotix/hypnotix.py", line 342, in __init__ self.dark_mode_manager = XApp.DarkModeManager.new(prefer_dark_mode=True)

 File "/usr/lib/python3.10/site-packages/gi/overrides/__init__.py", line 32, in __getattr__ return getattr(self._introspection_module, name)

 File "/usr/lib64/python3.10/site-packages/gi/module.py", line 126, in __getattr__ raise AttributeError("%r object has no attribute %r" % (

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

I had to comment line 342 in hypnotix.py. Not sure what the comment means by randomly garbage collected

 # Dark mode manager

 # keep a reference to it (otherwise it gets randomly garbage collected)

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

I noticed under some Movies -> 70s Cinema, the window will resize to extra wide, beyond the bounds of my 1920x1080 resolution. I can resize the horizontal width to smaller. I can also use snaps to put the window in the corner of my monitor and it will resize. I can not resize the vertical width to smaller, it's locked into ultra ultra wide with large black boarders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant