Create log dir if necessary

This commit is contained in:
Peter J. Holzer 2017-06-16 08:55:59 +02:00 committed by Peter J. Holzer
parent f15382ae27
commit c07c42d533
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ my $launcher = $ARGV[0];
my $launcher_dir = "$ENV{HOME}/.config/xfce4/panel/launcher-$launcher";
my @desktop_files = glob("$launcher_dir/*.desktop");
mkdir "$ENV{HOME}/log/";
mkdir "$ENV{HOME}/log/xfce-xterm-launcher/";
open my $log, ">>", "$ENV{HOME}/log/xfce-xterm-launcher/" . strftime("%Y-%m", localtime);