mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 14:15:07 +00:00
FileManager: Open non-executable files in TextEditor by default.
This commit is contained in:
parent
ce35cddb1b
commit
3ee0e82206
2 changed files with 9 additions and 1 deletions
|
@ -29,7 +29,7 @@ int main(int argc, char** argv)
|
|||
statusbar->set_text(String::format("Line: %d, Column: %d", editor.cursor().line(), editor.cursor().column()));
|
||||
};
|
||||
|
||||
String path = "/home/anon/ReadMe.md";
|
||||
String path = argc < 2 ? "/home/anon/ReadMe.md" : argv[1];
|
||||
{
|
||||
StringBuilder builder;
|
||||
int fd = open(path.characters(), O_RDONLY);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue