projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3db56a2
)
trying to figure out why webcit doesn't chdir properly when run from appimage
author
Art Cancro
<ajc@citadel.org>
Mon, 11 Jan 2021 21:36:30 +0000
(21:36 +0000)
committer
Art Cancro
<ajc@citadel.org>
Mon, 11 Jan 2021 21:36:30 +0000
(21:36 +0000)
appimage/ctdlvisor.c
patch
|
blob
|
history
diff --git
a/appimage/ctdlvisor.c
b/appimage/ctdlvisor.c
index 63230afaef3338132212cb9105dbc0f7fe6f6c38..5f088de4e7eb2bca1523cb1d1cc1721a763074fd 100644
(file)
--- a/
appimage/ctdlvisor.c
+++ b/
appimage/ctdlvisor.c
@@
-42,10
+42,12
@@
pid_t start_citadel() {
pid_t start_webcit() {
char bin[1024];
sprintf(bin, "%s/usr/local/webcit/webcit", getenv("APPDIR"));
pid_t start_webcit() {
char bin[1024];
sprintf(bin, "%s/usr/local/webcit/webcit", getenv("APPDIR"));
+ char wchome[1024];
+ sprintf(wchome, "-h%s/usr/local/webcit", getenv("APPDIR"));
pid_t pid = fork();
if (pid == 0) {
printf("Executing %s\n", bin);
pid_t pid = fork();
if (pid == 0) {
printf("Executing %s\n", bin);
- execlp(bin, "webcit", "-x9", "-p80", "uds", "/usr/local/citadel", NULL);
+ execlp(bin, "webcit", "-x9",
wchome,
"-p80", "uds", "/usr/local/citadel", NULL);
perror("execlp");
exit(errno);
}
perror("execlp");
exit(errno);
}
@@
-58,10
+60,12
@@
pid_t start_webcit() {
pid_t start_webcits() {
char bin[1024];
sprintf(bin, "%s/usr/local/webcit/webcit", getenv("APPDIR"));
pid_t start_webcits() {
char bin[1024];
sprintf(bin, "%s/usr/local/webcit/webcit", getenv("APPDIR"));
+ char wchome[1024];
+ sprintf(wchome, "-h%s/usr/local/webcit", getenv("APPDIR"));
pid_t pid = fork();
if (pid == 0) {
printf("Executing %s\n", bin);
pid_t pid = fork();
if (pid == 0) {
printf("Executing %s\n", bin);
- execlp(bin, "webcit", "-x9", "-s", "-p443", "uds", "/usr/local/citadel", NULL);
+ execlp(bin, "webcit", "-x9",
wchome,
"-s", "-p443", "uds", "/usr/local/citadel", NULL);
perror("execlp");
exit(errno);
}
perror("execlp");
exit(errno);
}