mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:18:11 +00:00
TextEditor: Open an empty document by default.
This commit is contained in:
parent
f8b72ab3ab
commit
a738b5cb69
2 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue