aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-10-03 18:09:18 +0000
committerOlivier Blin <oblin@mandriva.com>2007-10-03 18:09:18 +0000
commit32ab860808c3b39461a277ee3e83f906b5b7d79c (patch)
treec8d9fad6be523c28e556c71610a1ce54d04cbe17
parent7c224582b91fab2c2eb6e9fbea9d3f140e7b2103 (diff)
downloadtransfugdrake-32ab860808c3b39461a277ee3e83f906b5b7d79c.tar
transfugdrake-32ab860808c3b39461a277ee3e83f906b5b7d79c.tar.gz
transfugdrake-32ab860808c3b39461a277ee3e83f906b5b7d79c.tar.bz2
transfugdrake-32ab860808c3b39461a277ee3e83f906b5b7d79c.tar.xz
transfugdrake-32ab860808c3b39461a277ee3e83f906b5b7d79c.zip
make sure XDG directories are created before starting import
-rw-r--r--NEWS2
-rwxr-xr-xtransfugdrake3
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 6be9720..ed3605f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- make sure XDG directories are created before starting import
+
1.1:
- handle WINNT and lowercase system folder (#34377)
- fix ma-import 0.5.1 usage (by specifying --ostype as last option)
diff --git a/transfugdrake b/transfugdrake
index 8a0241a..f0cf289 100755
--- a/transfugdrake
+++ b/transfugdrake
@@ -161,6 +161,9 @@ my $wiz = wizards->new({
$wiz->process($in);
sub first_step() {
+ #- make sure XDG directories are created
+ system("su - $linux_user -c /usr/bin/xdg-user-dirs-update");
+
@windows_items = transfugdrake::list_windows_items($windows_disk, $windows_user);
@steps = map { $_->[0] } grep { intersection(\@windows_items, $_->[1]) } group_by2(@step_items);
@steps ? next_step() : 'nothing';