Compare commits
No commits in common. "64e6ee9489fe59daa2f674419e46365907f40c41" and "d8961012688c68081f115d58bb8b19515ee34f2b" have entirely different histories.
64e6ee9489
...
d896101268
2
.gitignore
vendored
2
.gitignore
vendored
@ -9,8 +9,6 @@ base/usr/include/**
|
||||
base/usr/lib/**
|
||||
base/usr/share/pkgdb/**
|
||||
!base/usr/share/fonts/*
|
||||
base/usr/share/**
|
||||
base/usr/x86_64-luna/**
|
||||
.fakeroot
|
||||
kernel/config.cmake
|
||||
ports/out/
|
||||
|
@ -1,3 +0,0 @@
|
||||
Name=gclient
|
||||
Description=Sample user application.
|
||||
Command=/usr/bin/gclient
|
@ -7,7 +7,6 @@
|
||||
#include <os/File.h>
|
||||
#include <os/LocalServer.h>
|
||||
#include <os/Process.h>
|
||||
#include <os/Security.h>
|
||||
#include <pwd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -20,8 +19,6 @@ Result<int> luna_main(int argc, char** argv)
|
||||
{
|
||||
srand((unsigned)time(NULL));
|
||||
|
||||
TRY(os::Security::pledge("stdio rpath wpath cpath unix proc exec tty id", NULL));
|
||||
|
||||
StringView socket_path = "/tmp/wind.sock";
|
||||
StringView user;
|
||||
|
||||
@ -77,8 +74,8 @@ Result<int> luna_main(int argc, char** argv)
|
||||
auto server = TRY(os::LocalServer::create(socket_path, false));
|
||||
TRY(server->listen(20));
|
||||
|
||||
StringView args[] = { "/usr/bin/init"_sv, "--user"_sv };
|
||||
TRY(os::Process::spawn("/usr/bin/init"_sv, Slice<StringView> { args, 2 }, false));
|
||||
StringView args[] = { "/usr/bin/gclient"_sv };
|
||||
TRY(os::Process::spawn("/usr/bin/gclient"_sv, Slice<StringView> { args, 1 }, false));
|
||||
|
||||
ui::Color background = ui::BLACK;
|
||||
|
||||
@ -88,8 +85,6 @@ Result<int> luna_main(int argc, char** argv)
|
||||
|
||||
Vector<os::LocalServer::Client> clients;
|
||||
|
||||
TRY(os::Security::pledge("stdio rpath unix", NULL));
|
||||
|
||||
while (1)
|
||||
{
|
||||
screen.canvas().fill(background);
|
||||
|
Loading…
Reference in New Issue
Block a user