summaryrefslogtreecommitdiff
path: root/Source/Applications/PaperWork/PaperWork.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Applications/PaperWork/PaperWork.cpp')
-rw-r--r--Source/Applications/PaperWork/PaperWork.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/Applications/PaperWork/PaperWork.cpp b/Source/Applications/PaperWork/PaperWork.cpp
index 15497e4..89cb00b 100644
--- a/Source/Applications/PaperWork/PaperWork.cpp
+++ b/Source/Applications/PaperWork/PaperWork.cpp
@@ -1,4 +1,6 @@
#include <App/ShellApp.proto.h>
+#include <Binding/FSNode.class.h>
+#include <TextFile.class.h>
#define DEFAULT_SHELL "/Applications/Shell/Shell.app"
#define PAPERWORK_PATH "/System/Applications/PaperWork.app"
@@ -33,7 +35,13 @@ int PaperWork::run() {
}
}
} else if (act == "login") {
- outvt << "Logging in to Melon\n";
+ FSNode welcome = FS::find("/System/Configuration/Welcome");
+ if (welcome.valid() && welcome.type() == NT_FILE) {
+ TextFile f("/System/Configuration/Welcome");
+ while (!f.eof()) outvt << f.readLine() << ENDL;
+ } else {
+ outvt << "Logging in to Melon\n";
+ }
String user, pw;
while (1) {
outvt << "Username: " << FLUSH;
@@ -55,6 +63,7 @@ int PaperWork::run() {
p.wait();
outvt << "\n\n";
} else {
+ outvt << "Could not run application : " << sh << ENDL;
return 1;
}
return 0;