[Bug 361047] New: UI::RunInTerminal not available from commandline mode.
https://bugzilla.novell.com/show_bug.cgi?id=361047 Summary: UI::RunInTerminal not available from commandline mode. Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: benji.weber@gmail.com QAContact: jsrain@novell.com Found By: --- A call to UI::RunInTerminal from command line mode results in: [ui] YUI_builtins.cc(runInTerminal):258 Not in text-mode: Cannot run external program in terminal. It should be possible to run commands in the terminal from the command line mode. Use Case: http://blogs.warwick.ac.uk/bweber/entry/installing_using_one/ which at the moment requires a wrapper shell script. TestCase attached, sample usage: /sbin/YaST2 ./CLRunInTerminalTestCase.ycp runtest command="echo hello" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=361047
User benji.weber@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=361047#c1
--- Comment #1 from Benjamin Weber
https://bugzilla.novell.com/show_bug.cgi?id=361047
Benjamin Weber
https://bugzilla.novell.com/show_bug.cgi?id=361047
User kmachalkova@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=361047#c2
--- Comment #2 from Katarina Machalkova
From IRC:
(12:40:01) bubli: benJIman: Strange, it 'somehow' works for me ... but you have to run '/sbin/yast', not '/sbin/YaST2' (12:40:36) benJIman: bubli: Well then it'll be using ncurses instead of Qt which might help. (12:40:36) bubli: as 'YaST2' tries to initialize GUI, which does not implement RunInTerminal builtin (12:41:30) bubli: But yet, the return value of system("echo hello") is 256, which is weird RunInTerminal builtin uses system() to execute interactive command, which runs '/bin/sh -c echo hello'. It means that 'echo hello' returned 1 for some reason. Let me try strace ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=361047
User kmachalkova@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=361047#c3
--- Comment #3 from Katarina Machalkova
https://bugzilla.novell.com/show_bug.cgi?id=361047
User kmachalkova@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=361047#c4
--- Comment #4 from Katarina Machalkova
https://bugzilla.novell.com/show_bug.cgi?id=361047
User kmachalkova@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=361047#c5
Katarina Machalkova
participants (1)
-
bugzilla_noreply@novell.com