-
Notifications
You must be signed in to change notification settings - Fork 89
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
Pympress (1.5.1+dfsg-3build1) is not loading when using i3 #282
Comments
Can you describe what happens on
I think setting windows fullscreen does not really mean anything on |
As to 1.5.1, I think if you have specific needs like |
The problem with the Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/opt/pympress/pympress/__main__.py", line 63, in <module>
gettext.install('pympress', util.get_locale_dir())
File "/opt/pympress/pympress/util.py", line 116, in get_locale_dir
return __get_resource_path('share', 'locale')
File "/opt/pympress/pympress/util.py", line 106, in __get_resource_path
root = importlib_resources.files('pympress')
AttributeError: module 'importlib.resources' has no attribute 'files' Hence, a simpler solution is just to create the That's why I think it could be useful to document this solution in case future users encounter the same problem.
For 1.8.0, I don't have any bug. However, the first time I ran Hence, I end up with a black screen. Once I understood what was going on, typing F11 and disabling the startup full-screen options fixed this behavior.
I also think that it is a better behavior. The simplest way could be to check if one of the running process is named On Ubuntu, there is external command such as So, I don't know what could be a reliable way to detect that |
We should support python 3.8. I’ll look into that. |
Current master should run fine on python 3.8, which solves that part of the issue. I’ll release 1.8.1 soon and you can just upgrade with pip. To detect |
Thanks, I will try that.
For me, I use From what I understand, However, by checking the other environment variable defined in my shell, I see that this one exists:
So, I guess that it is automatically defined when using import os
...
if os.environ.get("I3SOCK"):
... # Disable the start_fullscreen functionality |
To be more precise, my problem is fixed when replacing: Lines 498 to 499 in a3cf735
with: if os.environ.get("I3SOCK"):
c_full, p_full = False, False
elif not c_full and not p_full:
return |
Still leave the possibility to enable it manually if desired.
Problem
I use Ubuntu 20.04, hence I have installed
pympress
(1.5.1+dfsg-3build1) viaapt
.I also use
i3
(4.17.1) as my window manager.When running
pympress
, the Content and Presenter windows are spawned, however the Content window stays blank and nothing is loading.Debug
The problem occur when the Content window is set to full-screen, here:
pympress/pympress/ui.py
Line 350 in 60da16b
By checking the latest release of
pympress
(1.8.0), I see that the configuration file created in~/.config/pympress
contains the full-screen preferences for both windows. However, this file is not initialized for 1.5.1+dfsg-3build1.Solution
This problem can be fixed by manually creating
~/.config/pympress
with the following content:Question
I think that the problem comes from
i3
ignoring the command sent bypympress
(based on #59 (comment)).Maybe that this solution can be added here?
In any case, thank you for this really nice and useful software!
The text was updated successfully, but these errors were encountered: