-
Notifications
You must be signed in to change notification settings - Fork 613
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
Strange case of not seeing list of entries when combined with j4-dmenu-desktop
#331
Comments
yeah, that won't work.
This suggest this trick does not realy like the output to be redirected, something rofi needs to do for reading. also rofi expect it to return a list and wheen you select an item, it calls the script again with the selected item as argument. what is wrong with |
Here's a version that should have no issues with bent output FDs:
|
that is even more broken for me. Again even it it output correctly and rofi could read it, it won't do what you expect it to do. Repeat of my question, What is wrong with |
To be clear, if I need to fix the script mode, I am perfectly happy to do this. I am all for improving This is currently how script mode works: rofi: Call script with no arguments read return values (newline separatored) until the program returns. (uses g_spawn_async_With pipes). rofi: present user with option. If user selects entry: |
(I'm not a rofi user, so I don't quite grasp it's concepts or the "why would someone want to do this" questions) The following script seems to work as a rofi 'modi' (tested with
|
thanks for the help. |
Hey there again! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
So this issue involves j4-dmenu-desktop, very fast .desktop files finder written in C++.
Some background store first.
I used to use it in combination with rofi's dmenu mode instead of simply using
rofi -show drun
, because I have used j4-dmenu-desktop before with original dmenu.Then I wanted to have j4-dmenu-desktop appear as a custom modi in rofi, i.e. not standalone dmenu mode, eventually combining it with other modis in combi-mode.
But j4-dmenu-desktop was unable to produce list of entries to
STDOUT
, so I have created an issue in it's github's bug tracker. It's author, enkore kindly provided me a solution how to makej4-dmenu-desktop
print results toSTDOUT
using some (magical) shell extensions involvingreadlink
and output/input redirection, as you can see in this comment.Now the issue I'm reporting might, but might not, be related with
rofi
. Solution enkore provided works fine when using it in in terminal/console, i.e. it prints what is expected toSTDOUT
, nicely one entry per line. But rofi does not see this as a proper input for modi...I thought it might be interesting. I am ready to provide any more details if required. I love both programs, use them daily and appreciate solid work of their authors.
The text was updated successfully, but these errors were encountered: