davatorium / rofi

Rofi: A window switcher, application launcher and dmenu replacement
https://davatorium.github.io/rofi/
Other
13.24k stars 613 forks source link

[BUG] Can't detach / fork using ampersand (&) syntax in user scripts #1206

Closed scrouthtv closed 4 years ago

scrouthtv commented 4 years ago

Version

Version: 1.6.0

Configuration

https://gist.github.com/scrouthtv/b7ad1158ecb7af2ef1957e4d79ce36a6

Launch Command

~ rofi

Steps to reproduce

if [[ -z "$@" ]]; then echo a echo b echo c echo d else

xdotool type --clearmodifiers "$@" doesn't work because rofi still has focus at this point

(sleep 1s; xdotool type --clearmodifiers "$emo") &!

fi


- Step 2: Open a program that can accept text (vim, browser, notepad, etc) and open rofi
- Step 3: Select anything from the emoji category

## What behaviour you see

- nothing happens for 1 second
- text isn't inserted anywhere

## What behaviour you expect to see

- rofi closes instantly as the part in parantheses beginning with `sleep 1s` is forked to a new process and detached
- text is inserted in the program that can accept text after 1 second
DaveDavenport commented 4 years ago

Duplicate of: #1077, #1063, #864 and info in #857

github-actions[bot] commented 3 years ago

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.