summaryrefslogtreecommitdiff
path: root/Source/Applications
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-11-27 20:43:25 +0100
committerAlexis211 <alexis211@gmail.com>2009-11-27 20:43:25 +0100
commit56ace5efd6ccc02004ddafb1e564a3f9d5d538d2 (patch)
treec8219690b234d5ac1b761236e4c43b9706057462 /Source/Applications
parenta40fe1166ab1db972a8ca0380d603c4d90eede62 (diff)
downloadMelon-56ace5efd6ccc02004ddafb1e564a3f9d5d538d2.tar.gz
Melon-56ace5efd6ccc02004ddafb1e564a3f9d5d538d2.zip
Added some screenshots, re-organized some stuff.
Diffstat (limited to 'Source/Applications')
-rw-r--r--Source/Applications/PaperWork/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Applications/PaperWork/main.cpp b/Source/Applications/PaperWork/main.cpp
index 1a4c1c7..2fb40df 100644
--- a/Source/Applications/PaperWork/main.cpp
+++ b/Source/Applications/PaperWork/main.cpp
@@ -1,6 +1,8 @@
#include <Binding/Process.class.h>
#include <String.class.h>
+#define DEFAULT_SHELL "/Applications/Shell/Shell.app"
+
int main(Vector<String> args) {
String act = "init";
if (args.size() == 2) {
@@ -36,7 +38,10 @@ int main(Vector<String> args) {
outvt << "Authentication failed.\n\n";
continue;
}
- Process p = Process::run("/Applications/Shell/Shell.app");
+ outvt << "What shell to run [" << DEFAULT_SHELL << "]? ";
+ String sh = invt.readLine();
+ if (sh == "") sh = DEFAULT_SHELL;
+ Process p = Process::run(sh);
if (p.valid()) {
p.setInVT(invt);
p.setOutVT(outvt);