aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-04-03 14:54:47 +0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-04-03 14:54:47 +0200
commit8c41029c5de726a4f4866f5f57962fd4617cc0e6 (patch)
treea7106d942b1f0277e06b62c5904146b3cc8dd7d1
parentconfig: change Disable focus-out visuals to be more positive :) (diff)
downloadterminology-devs/bu5hm4n/cwd_fix.tar.gz
terminology: change cwd to root so we are not depending on the directorydevs/bu5hm4n/cwd_fix
we are started in
-rw-r--r--src/bin/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 0f2f7e5..62f8f91 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -874,6 +874,16 @@ remote:
if (ipc_instance_add(&inst))
goto end;
}
+ else
+ {
+ if (!cd)
+ {
+ char buf[PATH_MAX];
+ getcwd(buf, sizeof(buf));
+
+ cd = strdup(buf);
+ }
+ }
if ((!single) && (config->multi_instance))
{
ipc_instance_new_func_set(main_ipc_new);