Adding XDG_DATA_HOME

This commit is contained in:
sergiotarxz 2022-07-10 16:45:29 +02:00
parent 759bd12de9
commit d991e21b59
2 changed files with 7 additions and 5 deletions

View File

@ -12,9 +12,11 @@ print $recuento_inner.'';
$recuento_inner->mkpath;
my $resources = $recuento_inner->child('resources');
$resources->mkpath;
copy_recursive('/home/sergio/recuento_root/usr/bin/*.{exe,EXE}', $recuento_inner);
copy_recursive('/home/sergio/recuento_root/usr/bin/*.{dll,DLL}', $destdir);
copy_recursive('/home/sergio/recuento_root/usr/bin/recuento{,_launcher_windows}.exe', $recuento_inner);
copy_recursive('/home/sergio/recuento_root/usr/bin/rsvg-convert.exe', $recuento_inner);
copy_recursive('/home/sergio/recuento_root/usr/bin/rsvg-convert.exe', $destdir);
copy_recursive('/home/sergio/recuento_root/usr/bin/*.{dll,DLL}', $recuento_inner);
copy_recursive('/home/sergio/recuento_root/usr/bin/*.{dll,DLL}', $destdir);
copy_recursive('/usr/lib/gcc/x86_64-w64-mingw32/11.3.0/libgcc_s_seh-1.dll', $recuento_inner);
copy_recursive('/usr/lib/gcc/x86_64-w64-mingw32/11.3.0/libgcc_s_seh-1.dll', $destdir);
copy_recursive('/usr/x86_64-w64-mingw32/usr/bin/libwinpthread-1.dll', $recuento_inner);
@ -23,7 +25,7 @@ copy_recursive('/usr/lib/gcc/x86_64-w64-mingw32/11.3.0/libstdc++-6.dll', $recuen
copy_recursive('/usr/lib/gcc/x86_64-w64-mingw32/11.3.0/libstdc++-6.dll', $destdir);
copy_recursive('/home/sergio/recuento_root/usr/share/recuento/', $resources);
move_launcher ($recuento_inner, $destdir);
make_config ($destdir);
#make_config ($recuento_inner);
make_share ($destdir);
compress_7z($destdir);
@ -47,7 +49,6 @@ sub make_share {
$share_fonts->mkpath;
$share_icons->mkpath;
copy_recursive('/home/sergio/recuento_root/usr/share/icons/Adwaita', $share_icons.'');
copy_recursive('/home/sergio/recuento_root/usr/share/icons/hicolor', $share_icons.'');
copy_recursive('/home/sergio/recuento_root/usr/share/glib-2.0/schemas/*', $share_schemas.'');
}
@ -70,7 +71,7 @@ sub move_launcher {
sub copy_recursive {
my $source = shift;
my $dest = shift;
return !!0+system 'cp', '-r', glob($source), $dest;
return !!0+system 'cp', '-Lr', glob($source), $dest;
}
sub compress_7z {
my $destdir = shift;

View File

@ -99,6 +99,7 @@ WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR pCmdLine, int nCmdShow)
_putenv_s("DATADIR_RECUENTO", "recuento\\\\resources");
_putenv_s("GSETTINGS_SCHEMA_DIR", "share\\\\glib-2.0\\\\schemas");
_putenv_s("XDG_DATA_HOME", "share");
_putenv_s("XDG_CONFIG_DIRS", "etc");
int return_value = execvp(argument_list[0], argument_list);