Package: libconfig-model-tkui-perl / 1.369-2

fix-home-dir-of-buildd Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix home dir of buildd
 Use /tmp as home dir when user (i.e buildd) has no home dir,
Author: dod
Applied-Upstream: soon
--- a/lib/Config/Model/TkUI.pm
+++ b/lib/Config/Model/TkUI.pm
@@ -91,7 +91,8 @@
 };
 
 my $main_window;
-my $config_path = path(File::HomeDir->my_home)->child('.cme/config/');
+my $home_str = File::HomeDir->my_home || '/tmp/';
+my $config_path = path($home_str)->child('.cme/config/');
 my $config_file = $config_path->child('tkui.yml');
 
 $config_path -> mkpath;