this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Populate ~/Library based on User Template, spawn bash as a login shell

+8 -4
+3
.gitmodules
··· 301 301 [submodule "src/external/iokitd"] 302 302 path = src/external/iokitd 303 303 url = ../darling-iokitd.git 304 + [submodule "src/external/usertemplate"] 305 + path = src/external/usertemplate 306 + url = ../darling-usertemplate.git
+1
src/CMakeLists.txt
··· 371 371 372 372 add_subdirectory(frameworks) 373 373 add_subdirectory(private-frameworks) 374 + add_subdirectory(external/usertemplate) 374 375 375 376 # /Applications 376 377 #add_subdirectory(external/TextEdit)
+3 -2
src/shellspawn/shellspawn.c
··· 122 122 int rv; 123 123 struct pollfd pfd[2]; 124 124 char** argv = NULL; 125 - int argc = 1; 125 + int argc = 2; 126 126 struct msghdr msg; 127 127 struct iovec iov; 128 128 char cmsgbuf[CMSG_SPACE(sizeof(int)) * 3]; ··· 130 130 131 131 bool read_cmds = true; 132 132 133 - argv = (char**) malloc(sizeof(char*) * 2); 133 + argv = (char**) malloc(sizeof(char*) * 3); 134 134 argv[0] = "/bin/bash"; 135 + argv[1] = "--login"; 135 136 136 137 // Read commands from client 137 138 while (read_cmds)
+1 -2
src/startup/darling.c
··· 747 747 748 748 free(opts); 749 749 750 - setupUserHome(); 751 - 752 750 // This is executed once at prefix creation 753 751 if (g_fixPermissions) 754 752 fixDirectoryPermissions(prefix); ··· 768 766 setresuid(g_originalUid, g_originalUid, g_originalUid); 769 767 prctl(PR_SET_DUMPABLE, 1, 0, 0, 0); 770 768 769 + setupUserHome(); 771 770 setupCoredumpPattern(); 772 771 773 772 // Set name to darling-init