Skip to content

Commit c5994e0

Browse files
committed
Return to startmenu from irb and ridk
Now that no threads are used in thet startmenu, we can return to it after command execution.
1 parent 75a83db commit c5994e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/files/startmenu.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
app.clear_screen
1515
RubyInstaller::Runtime::Ridk.print_logo
1616
puts "\nStarting irb. To show the irb command help, type `help` and press Enter."
17-
Kernel.exec File.join(RbConfig::CONFIG["bindir"], "irb.bat")
17+
Kernel.system File.join(RbConfig::CONFIG["bindir"], "irb.bat")
1818
end
1919

2020
html_path = File.join(RbConfig::CONFIG["prefix"], "share/doc/ruby/html/index.html")
@@ -52,7 +52,7 @@
5252
app.clear_screen
5353
puts "\nRun cmd.exe with ruby environment variables (ridk enable)"
5454
ridk = File.join(RbConfig::CONFIG["bindir"], "ridk")
55-
Kernel.exec "cmd", "/E:ON", "/K", ridk, "enable"
55+
Kernel.system "cmd", "/E:ON", "/K", ridk, "enable"
5656
end
5757

5858
bt = <<~EOT
@@ -62,7 +62,7 @@
6262
bm.add_button bt do
6363
puts "\nInstall MSYS2 (ridk install)"
6464
ridk = File.join(RbConfig::CONFIG["bindir"], "ridk")
65-
Kernel.exec ridk, "install"
65+
Kernel.system ridk, "install"
6666
end
6767

6868
app.widget = bm

0 commit comments

Comments
 (0)