Compare commits

..

35 Commits

Author SHA1 Message Date
ecfd20dba6
wind: Spawn a new client process after startup
All checks were successful
continuous-integration/drone/pr Build is passing
Also, create the socket after dropping privileges.
2023-08-07 22:54:07 +02:00
e748137209
apps: Add gclient 2023-08-07 22:54:06 +02:00
80390a3ecc
libos: Add os::LocalClient 2023-08-07 22:54:06 +02:00
34dcf7f75f
libui: Change 'into' to 'onto' 2023-08-07 22:54:05 +02:00
028e1f7ffb
libui: Document ui::Font 2023-08-07 22:54:05 +02:00
7a095d7a67
libui+wind: Move some static variables inside functions 2023-08-07 22:54:05 +02:00
23b0fa3451
wind: Generate random windows on keypresses 2023-08-07 22:54:04 +02:00
e9a27ef29a
wind: Make sure windows have a minimum size to fit the titlebar 2023-08-07 22:54:04 +02:00
8cc9d41f27
libui: Properly cut off the last drawn character if necessary 2023-08-07 22:54:03 +02:00
bccc1f062f
libui: Add Rect::contains(Rect) 2023-08-07 22:54:03 +02:00
1d0093b451
libui: Render font characters properly with no spacing, matching the width calculations 2023-08-07 22:54:03 +02:00
db50eb74a4
wind: Render an actual TGA mouse cursor 2023-08-07 22:54:02 +02:00
e8a445fc98
wind: Add a close button to windows using a TGA icon 2023-08-07 22:54:02 +02:00
481c757dac
libui: Add support for TGA image loading 2023-08-07 22:54:01 +02:00
7eaa076910
libui: Add an interface to fill a Canvas with an array of pixels 2023-08-07 22:54:01 +02:00
71754ea7fe
wind: Add window titlebars using ui::Font 2023-08-07 22:54:01 +02:00
70494733ee
libui: Add PSF font loading and rendering 2023-08-07 22:54:00 +02:00
dc0e0126fc
libui: Add Color::GRAY 2023-08-07 22:54:00 +02:00
91752f3c9d
libui: Rename Rect::absolute to normalized and add a new absolute function 2023-08-07 22:53:59 +02:00
4cb1709ae2
libluna: Add assignment operators to Buffer 2023-08-07 22:53:59 +02:00
06b792109a
wind: Reorder drag sequence 2023-08-07 22:53:58 +02:00
3da0a00b76
libui: Add Rect::relative 2023-08-07 22:53:58 +02:00
d0c5d5a565
libui: Remove redundant statement 2023-08-07 22:53:57 +02:00
cbd5b3a200
libui: Add getters for separate color values 2023-08-07 22:53:57 +02:00
e77418f259
libui: Remove unnecessary stuff 2023-08-07 22:53:56 +02:00
4c72015817
base: Remove startup items not necessary for GUI startup 2023-08-07 22:53:56 +02:00
9b8cc476e1
libui+wind: (Draggable) windows 2023-08-07 22:53:55 +02:00
1828a647fa
wind: Create a local server object 2023-08-07 22:53:55 +02:00
778b85417c
libos: Add a new LocalServer class for local domain sockets 2023-08-07 22:53:54 +02:00
e4ba7e121f
kernel: Support listening sockets in poll() 2023-08-07 22:53:54 +02:00
5e3647b7db
base: Start wind on startup instead of the shell 2023-08-07 22:53:53 +02:00
90c849a38c
wind: Add a simple display server skeleton using libui
No client functionality yet, but it's a start.
2023-08-07 22:53:53 +02:00
b4d02da12d
libui: Add a GUI and graphics library 2023-08-07 22:53:52 +02:00
82b058a2d3
kernel: Fix negative movement in the PS/2 mouse driver 2023-08-07 22:53:52 +02:00
2e63b93e48
libos: Remove debug statements from Process::spawn()
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-07 22:53:37 +02:00

View File

@ -8,7 +8,6 @@
*/ */
#include <errno.h> #include <errno.h>
#include <luna/DebugLog.h>
#include <os/Process.h> #include <os/Process.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/syscall.h> #include <sys/syscall.h>
@ -93,16 +92,9 @@ namespace os
Result<pid_t> Process::spawn(StringView path, Slice<StringView> args, bool search_in_path) Result<pid_t> Process::spawn(StringView path, Slice<StringView> args, bool search_in_path)
{ {
Vector<const char*> argv; Vector<const char*> argv;
for (const auto& arg : args) for (const auto& arg : args) { TRY(argv.try_append(arg.chars())); }
{
TRY(argv.try_append(arg.chars()));
dbgln("os::Process:spawn() adding new argument: %s", arg.chars());
}
TRY(argv.try_append(nullptr)); TRY(argv.try_append(nullptr));
dbgln("os::Process:spawn() invoking do_spawn(): path=%s, argv=%p, envp=%p", path.chars(),
const_cast<char**>(argv.data()), environ);
return do_spawn(path.chars(), const_cast<char**>(argv.data()), environ, search_in_path); return do_spawn(path.chars(), const_cast<char**>(argv.data()), environ, search_in_path);
} }