Compare commits

..

34 Commits

Author SHA1 Message Date
939f443e9b
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:51:28 +02:00
b15ba11f90
apps: Add gclient 2023-08-07 22:50:50 +02:00
2204348a40
libos: Add os::LocalClient 2023-08-07 22:50:49 +02:00
54c3689cf7
libui: Change 'into' to 'onto' 2023-08-07 22:50:01 +02:00
a152623b01
libui: Document ui::Font 2023-08-07 22:50:01 +02:00
eef1fd24fb
libui+wind: Move some static variables inside functions 2023-08-07 22:50:01 +02:00
c83d4eafde
wind: Generate random windows on keypresses 2023-08-07 22:50:00 +02:00
f9abca1ffb
wind: Make sure windows have a minimum size to fit the titlebar 2023-08-07 22:50:00 +02:00
28dee21de5
libui: Properly cut off the last drawn character if necessary 2023-08-07 22:50:00 +02:00
0814e1edeb
libui: Add Rect::contains(Rect) 2023-08-07 22:49:59 +02:00
3f7ee75681
libui: Render font characters properly with no spacing, matching the width calculations 2023-08-07 22:49:59 +02:00
98e76b35d6
wind: Render an actual TGA mouse cursor 2023-08-07 22:49:58 +02:00
3785f7941e
wind: Add a close button to windows using a TGA icon 2023-08-07 22:49:58 +02:00
41b0ee094f
libui: Add support for TGA image loading 2023-08-07 22:49:58 +02:00
60542a42a5
libui: Add an interface to fill a Canvas with an array of pixels 2023-08-07 22:49:57 +02:00
ae8f6fbabd
wind: Add window titlebars using ui::Font 2023-08-07 22:49:57 +02:00
dfe8f6ed59
libui: Add PSF font loading and rendering 2023-08-07 22:49:57 +02:00
521208dd4b
libui: Add Color::GRAY 2023-08-07 22:49:56 +02:00
f174e286f2
libui: Rename Rect::absolute to normalized and add a new absolute function 2023-08-07 22:49:56 +02:00
40cc11bb1f
libluna: Add assignment operators to Buffer 2023-08-07 22:49:55 +02:00
2fc34fbc58
wind: Reorder drag sequence 2023-08-07 22:49:55 +02:00
9f71c0cc2a
libui: Add Rect::relative 2023-08-07 22:49:55 +02:00
cd30a32367
libui: Remove redundant statement 2023-08-07 22:49:54 +02:00
b448e7f206
libui: Add getters for separate color values 2023-08-07 22:49:54 +02:00
1be7866d49
libui: Remove unnecessary stuff 2023-08-07 22:49:53 +02:00
9291ad325c
base: Remove startup items not necessary for GUI startup 2023-08-07 22:49:53 +02:00
c8a490f927
libui+wind: (Draggable) windows 2023-08-07 22:49:53 +02:00
c7bef46c39
wind: Create a local server object 2023-08-07 22:49:52 +02:00
89f3e411c9
libos: Add a new LocalServer class for local domain sockets 2023-08-07 22:49:52 +02:00
d4bb9c61b6
kernel: Support listening sockets in poll() 2023-08-07 22:49:51 +02:00
e4ce41fc4c
base: Start wind on startup instead of the shell 2023-08-07 22:49:51 +02:00
acb26ad856
wind: Add a simple display server skeleton using libui
No client functionality yet, but it's a start.
2023-08-07 22:49:51 +02:00
6cc98b1dbc
libui: Add a GUI and graphics library 2023-08-07 22:49:50 +02:00
0b42018d8b
kernel: Fix negative movement in the PS/2 mouse driver 2023-08-07 22:49:50 +02:00

View File

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