Comments (9)
This is incredibly embarassing, I had a wrapper around rofi in my home directoy that set some environment variables which did not properly forward the arguments. Thanks for helping out though!
from rofi.
I cannot reproduce:
rofi -no-config -kb-mode-previous '' -kb-mode-next '' -show keys
works.
from rofi.
Tested, works with latest and 1.7.5.
I can reproduce your error:
rofi -no-config -kb-mode-previous -kb-mode-next -show keys
are you sure you shell/launcher passes empty arguments?
from rofi.
If I substitute rofi
for printf -- '"%s"\n'
:
$ printf -- '"%s"\n' -no-config -kb-mode-previous '' -kb-mode-next '' -show keys
"-no-config"
"-kb-mode-previous"
""
"-kb-mode-next"
""
"-show"
"keys"
So I guess it works as intended?
Edit: tested with ZSH 5.9, Bash 5.2.26 and Dash 0.5.12. All show the above output
from rofi.
What shell do you use, because from your error message, those empty ones are not there.
It tries to interper '-show' as the value of '-kb-mode-next'.
For me with bash, your example works fine (see screenshot).
also tested zsh 5.9, works fine.
This does not feel like a rofi issue because rofi code does not skip 'empty' arguments (it gets an array passed), but I am unsure why for you the shell does not pass those .
from rofi.
Calling rofi from python does seem to work on my system (os.exec
does not run in a shell):
#!/bin/python3
import os
os.execv('/bin/rofi', [ 'rofi', # argv[0] needs to be passed again
'-no-config',
'-kb-mode-previous', '',
'-kb-mode-next', '',
'-show', 'keys'
])
I am unsure why this works, while the shell does not
from rofi.
Ok, that confirms it aint rofi's fault, but I wonder why your shell is behaving differently for you then me.
from rofi.
Happy the problem is resolved .
from rofi.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from rofi.
Related Issues (20)
- [BUG] Commands launched in 'run' mode are duplicated in history, enclosed in quotes. HOT 4
- How to make an item/row permanent? HOT 1
- How to make text in item/row visible but not being searched in -dmenu?
- [BUG] rofi filebrowser does not reliably list all directory entries on remote filesystems HOT 4
- [BUG] Stop quoting entries in history when running them HOT 5
- [REQUEST] filter mode option HOT 2
- [REQUEST] Sort combi modes option HOT 4
- [REQUEST] Custom order of window list. HOT 9
- [BUG] rofi crashes with SIGSEGV HOT 40
- [REQUEST] HOT 2
- [BUG] Icon fetcher fails to load icons/thumbnails for animated GIFs HOT 4
- [BUG] Rofi can't show icons of desktop entries when the desktop entry contains a path for the icon HOT 25
- [BUG] run mode does not update with new files in $PATH when run from a keybind (e.g. from sxhkd) HOT 4
- [BUG] Segfault somewhere in PCRE on archlinux HOT 5
- [BUG] Setting cursor-color has no impact on the Rofi application launcher. HOT 4
- [REQUEST] Prefix sorting HOT 15
- [REQUEST] change default ellipsize mode in rofi config
- [BUG] rofi-theme-selector does not work as which is not found HOT 1
- [BUG] rofi will not remove options from drun HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rofi.