-
Notifications
You must be signed in to change notification settings - Fork 626
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
[BUG] rofi script mode only accept one colon (problem with filename which includes colons) #1718
Comments
You should pass a path to a script (or executable name if in $PATH) as second argument, not inline the script. For me this is a no-fix, this: I will add a check to see if an actual executable file is passed as 2nd argument. |
You can always expect random user to find interesting or stupid but unexpected way to use your tool ;-). The initial use case was motivated by my scripts https://gitlab.com/matclab/rofi-file-selector ( I guess I can find a way to communicate the filename between the script calling rofi and the modi script (via temporary file for example), but at first look the command line was a nice way to do it. Anyway, thank you for your very nice tool. |
Interesting, always good to see the usecase. I think argument to the script is a valid use-case. |
Can you check if that fix works ^^. I kept it simple, I only split once on ':'. |
Wow, It was quick ! Thank you very much ! |
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. |
Rofi version (rofi -v)
1.7.5
Configuration
https://gist.github.com/matclab/e3600d7b89e898a6efdd35b595b25346#file-rofi-dump-txt
Theme
https://gist.github.com/matclab/e3600d7b89e898a6efdd35b595b25346#file-rofi-theme
Timing report
NA
Launch command
rofi -show mimeopen -modes 'mimeopen:echo -e b:1.pdf\nc.pdf'
Step to reproduce
Expected behavior
I would expect rofi to show a menu with
Actual behavior
But instead I get the error:
Additional information
I didn't see a way to escape colon.
Shall I try to send a PR which makes rofi accept several colons for the modi script argument ?
The text was updated successfully, but these errors were encountered: