From 043a37b881bb1e9e6848166d612d787df29d4afb Mon Sep 17 00:00:00 2001 From: "yuri@hx90" Date: Fri, 22 Sep 2023 00:23:49 -0400 Subject: [PATCH] Work directory unique per user --- pacbro.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacbro.pl b/pacbro.pl index 75715a5..67938b3 100755 --- a/pacbro.pl +++ b/pacbro.pl @@ -19,7 +19,7 @@ my $fzfx = exe_path('fzf') // die("Please install fzf\n"); my $yayx = exe_path('yay'); my $progname = ($0 =~ m{(?:^|/)([^/]+?)(?:\.\w+)?$}s) ? $1 : die("Bad program name: $0\n"); -my $work_dir = "/tmp/$progname"; +my $work_dir = "/tmp/$progname-$ENV{USER}"; my $sess_code = "$progname-$$"; my $tumx_cmd = "$tmux_exe -L $sess_code"; my $log_fname = "$work_dir/app.log"; # global log