-
Notifications
You must be signed in to change notification settings - Fork 9
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
Not working :( #2
Comments
@agenbite, maybe not relevant anymore but I had this issue when the window was too small. |
Hey, thanks, @Syphdias! Unfortunately that doesn't seem to be my case... :( |
What happens if you execute the menu.py outside of ranger? Probably:
Edit: Just re-read your post, And you sayed you already tried that. I suppose nothing happened? |
What happens if you do |
On Sun Mar 20, 2022 at 2:00 PM CET, Syphdias wrote:
What happens if you execute the menu.py outside of ranger? Probably:
```
python3 ~/.config/ranger/ranger_udisk_menu/menu.py
```
Traceback (most recent call last): File "/home/myself/.config/ranger/ranger_udisk_menu/menu.py", line 230, in <module> sel = cp.select()
File "/home/jlmyself/.config/ranger/ranger_udisk_menu/menu.py", line 165, in select
self._select_print(x)
File "/home/jlmyself/.config/ranger/ranger_udisk_menu/menu.py", line 130, in _select_print
self._select_print_block_device(bd, bd_i)
File "/home/jlmyself/.config/ranger/ranger_udisk_menu/menu.py", line 114, in _select_print_block_device
self.screen.addstr(2 + i, 2, bd['name'] + " " + model + " " + size)
_curses.error: addwstr() returned ERR
|
On Sun Mar 20, 2022 at 2:06 PM CET, Syphdias wrote:
What happens if you do `lsblk --all --json -O`?
This: https://paste.sr.ht/~inwit/e53a11d6f25190668229f78b3b28e89e55969a5b
Thank you for your help.
|
I used your If I dropped my window height bellow 65 lines for your data in a mock file – you can check with Since you have a lot of loop devices from your snap installs, I am not yet convinced that your window is big yet (lines-wise that is). Maybe you have a small laptop screen or something. Could you try:
|
I just realized that I have a 1440p Monitor which barely fits the requirement of 65 lines (I have 68 on a full height terminal window and 70 on fullscreen). This make me even more certain you still have a space issue. I think the 65 come from 60 lines devices + 2 lines for explanation + 2 lines for top and bottom border + 1 line of rogue newline that gets added? |
Yeah, you're absolutely right. It is indeed a matter of space. I'm mostly on a laptop, so there's no way I can decrease the text size down to the point where ranger_udisk_menu would work properly. Over ~60 lines text becomes unreadable. And Is there any way this can be solved? Of course, removing my snaps is one way. But I guess that wouldn't be useful for anyone else, right? |
Another option, as per this answer, would be to add |
Check out #3. I have written a bit about what I have done there as well. In short:
|
Well, it looks good to me! I agree on all your remarks, but, for the time being, this is nonetheless a solution to my problem. Thank you, @Syphdias!! |
Sorry for the inexpressive title. I've followed the steps to install and when I
call
:mount
the screen flickers and nothing else happens. How can I know ifthis is a permissions problem or something else? I've tried calling the program
from command line, but that doesn't work. Thanks in advance!
The text was updated successfully, but these errors were encountered: