Compare commits

..

No commits in common. "64e6ee9489fe59daa2f674419e46365907f40c41" and "d8961012688c68081f115d58bb8b19515ee34f2b" have entirely different histories.

3 changed files with 2 additions and 12 deletions

2
.gitignore vendored
View File

@ -9,8 +9,6 @@ base/usr/include/**
base/usr/lib/** base/usr/lib/**
base/usr/share/pkgdb/** base/usr/share/pkgdb/**
!base/usr/share/fonts/* !base/usr/share/fonts/*
base/usr/share/**
base/usr/x86_64-luna/**
.fakeroot .fakeroot
kernel/config.cmake kernel/config.cmake
ports/out/ ports/out/

View File

@ -1,3 +0,0 @@
Name=gclient
Description=Sample user application.
Command=/usr/bin/gclient

View File

@ -7,7 +7,6 @@
#include <os/File.h> #include <os/File.h>
#include <os/LocalServer.h> #include <os/LocalServer.h>
#include <os/Process.h> #include <os/Process.h>
#include <os/Security.h>
#include <pwd.h> #include <pwd.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -20,8 +19,6 @@ Result<int> luna_main(int argc, char** argv)
{ {
srand((unsigned)time(NULL)); 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 socket_path = "/tmp/wind.sock";
StringView user; StringView user;
@ -77,8 +74,8 @@ Result<int> luna_main(int argc, char** argv)
auto server = TRY(os::LocalServer::create(socket_path, false)); auto server = TRY(os::LocalServer::create(socket_path, false));
TRY(server->listen(20)); TRY(server->listen(20));
StringView args[] = { "/usr/bin/init"_sv, "--user"_sv }; StringView args[] = { "/usr/bin/gclient"_sv };
TRY(os::Process::spawn("/usr/bin/init"_sv, Slice<StringView> { args, 2 }, false)); TRY(os::Process::spawn("/usr/bin/gclient"_sv, Slice<StringView> { args, 1 }, false));
ui::Color background = ui::BLACK; ui::Color background = ui::BLACK;
@ -88,8 +85,6 @@ Result<int> luna_main(int argc, char** argv)
Vector<os::LocalServer::Client> clients; Vector<os::LocalServer::Client> clients;
TRY(os::Security::pledge("stdio rpath unix", NULL));
while (1) while (1)
{ {
screen.canvas().fill(background); screen.canvas().fill(background);