diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-07 17:15:59 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-07 17:15:59 +0100 |
commit | a738b5cb699d506331b082e0b68de14898f23056 (patch) | |
tree | 805178edd536441f21873886b279b614bd9621dc /Kernel | |
parent | f8b72ab3ab1616242b56b8ac42c11f4d8217aca1 (diff) | |
download | serenity-a738b5cb699d506331b082e0b68de14898f23056.zip |
TextEditor: Open an empty document by default.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/init.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp index b0d38a9c47..f55caa81b8 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -104,7 +104,10 @@ VFS* vfs; Process::create_user_process("/bin/ProcessManager", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, { }, tty0); #endif #ifdef SPAWN_TEXT_EDITOR - Process::create_user_process("/bin/TextEditor", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, { }, tty0); + Vector<String> text_editor_arguments; + text_editor_arguments.append("/bin/TextEditor"); + text_editor_arguments.append("/home/anon/ReadMe.md"); + Process::create_user_process("/bin/TextEditor", (uid_t)100, (gid_t)100, (pid_t)0, error, move(text_editor_arguments), { }, tty0); #endif #ifdef SPAWN_FONTEDITOR Process::create_user_process("/bin/FontEditor", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, move(environment), tty0); |