raphamorim / rio

A hardware-accelerated GPU terminal emulator focusing to run in desktops and browsers.
https://raphamorim.io/rio
MIT License
4.07k stars 136 forks source link

Cannot spawn a new process with shell option #796

Closed kaankoken closed 4 days ago

kaankoken commented 1 week ago

Hi there,

I recently started to use rio (it is great btw). The shell option cannot spawn a new process.

[shell]
args = ['--login']
program = '/bin/zsh'

# or
[shell]
program = "/opt/homebrew/bin/tmux"
args = ["new-session", "-c", "/var/www"]

Either of the options does not work. Could you guide me to fix it?

image

MacOS Version 15.0 (24A335) tmux 3.5a rioterm 0.2.1

Full config

# close without confirmation
confirm-before-quit = false

# theme
theme = 'catppuccin-mocha'

hide-mouse-cursor-when-typing = false
option-as-alt = 'rigth'

working-dir = 'None'
# Window padding
padding-x = 16
padding-y = [16, 16]

[editor]
program = 'vi'
args = []

[cursor]
shape = 'block'
blinking = false

[fonts]
family = 'JetBrainsMono Nerd Font'
size = 16.0
hinting = true

[fonts.ui]
family = 'JetBrainsMono Nerd Font'

[shell]
args = ['--login']
program = '/bin/zsh'

[renderer]
performance = 'High'
backend = 'Automatic'
target-fps = 120
strategy = 'events'

[window]
mode = 'Windowed'
opacity = 0.85
blur = true
decorations = 'Buttonless'

[keyboard]
disable-ctlseqs-alt = false

[navigation]
mode = 'Plain'
hide-if-single = true
raphamorim commented 1 week ago

Hey @kaankoken thank you for the issue!!

if you run: ‘where zsh’ what it does return?

kaankoken commented 1 week ago

The paths are exactly the same as in short code snippet.

"/bin/zsh" for zsh "/opt/homebrew/bin/tmux" for tmux

I also double checked the paths whether have any spaces or unicode chars.

MirniWantsSweets commented 1 week ago

hello sir! I've found the solution for your error. The issue is with the

working-dir = 'None'

Delete that line and it will work again.

raphamorim commented 5 days ago

@kaankoken did @MirniWantsSweets suggestion fixed for you?

kaankoken commented 4 days ago

working-dir indeed solved my problem. thanks for suggesting it