mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
FileManager: Start building a file manager.
This commit is contained in:
parent
8ae7be611a
commit
4d5fe39494
14 changed files with 270 additions and 2 deletions
|
@ -29,6 +29,7 @@
|
|||
#define SPAWN_LAUNCHER
|
||||
//#define SPAWN_GUITEST2
|
||||
#define SPAWN_CLOCK
|
||||
#define SPAWN_FILE_MANAGER
|
||||
//#define SPAWN_FONTEDITOR
|
||||
//#define SPAWN_MULTIPLE_SHELLS
|
||||
//#define STRESS_TEST_SPAWNING
|
||||
|
@ -120,6 +121,9 @@ static void init_stage2()
|
|||
#ifdef SPAWN_CLOCK
|
||||
Process::create_user_process("/bin/Clock", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, move(environment), tty0);
|
||||
#endif
|
||||
#ifdef SPAWN_FILE_MANAGER
|
||||
Process::create_user_process("/bin/FileManager", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, move(environment), tty0);
|
||||
#endif
|
||||
#ifdef SPAWN_FONTEDITOR
|
||||
Process::create_user_process("/bin/FontEditor", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, move(environment), tty0);
|
||||
#endif
|
||||
|
|
|
@ -16,6 +16,8 @@ make -C ../Clock clean && \
|
|||
make -C ../Clock && \
|
||||
make -C ../Launcher clean && \
|
||||
make -C ../Launcher && \
|
||||
make -C ../FileManager clean && \
|
||||
make -C ../FileManager && \
|
||||
make clean &&\
|
||||
make && \
|
||||
sudo ./sync.sh
|
||||
|
|
|
@ -8,6 +8,8 @@ mount -o loop _fs_contents mnt/
|
|||
mkdir -vp mnt/bin
|
||||
mkdir -vp mnt/etc
|
||||
mkdir -vp mnt/proc
|
||||
mkdir -vp mnt/tmp
|
||||
chmod 1777 mnt/tmp
|
||||
mkdir -vp mnt/dev
|
||||
mkdir -vp mnt/dev/pts
|
||||
mknod mnt/dev/tty0 c 4 0
|
||||
|
@ -54,13 +56,12 @@ cp -v ../Terminal/Terminal mnt/bin/Terminal
|
|||
cp -v ../FontEditor/FontEditor mnt/bin/FontEditor
|
||||
cp -v ../Launcher/Launcher mnt/bin/Launcher
|
||||
cp -v ../Clock/Clock mnt/bin/Clock
|
||||
cp -v ../FileManager/FileManager mnt/bin/FileManager
|
||||
cp -v ../Userland/pape mnt/bin/pape
|
||||
cp -v ../Userland/dmesg mnt/bin/dmesg
|
||||
cp -v ../Userland/chmod mnt/bin/chmod
|
||||
cp -v ../Userland/top mnt/bin/top
|
||||
cp -v kernel.map mnt/
|
||||
ln -s dir_a mnt/dir_cur
|
||||
ln -s nowhere mnt/bad_link
|
||||
sh sync-local.sh
|
||||
umount mnt
|
||||
sync
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue