gloobus-preview-usr-bsdtar-for-rar.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. diff -Naurp1 a/src/plugin-comic/comic-loader.cpp b/src/plugin-comic/comic-loader.cpp
  2. --- a/src/plugin-comic/comic-loader.cpp 2015-12-22 12:45:23.000000000 +0600
  3. +++ b/src/plugin-comic/comic-loader.cpp 2020-10-31 21:13:11.044175426 +0600
  4. @@ -75,4 +75,4 @@ DocumentState ComicLoader::loadDocument(
  5. else if(!g_strcmp0 ("application/x-cbr", type)) {
  6. - list_cmd_ = "unrar vb -c- -- ";
  7. - extract_cmd_ = "unrar p -c- -ierr";
  8. + list_cmd_ = "bsdtar -tf";
  9. + extract_cmd_ = "bsdtar -xOf";
  10. }
  11. diff -Naurp1 a/src/plugin-comic/comic-plugin.h b/src/plugin-comic/comic-plugin.h
  12. --- a/src/plugin-comic/comic-plugin.h 2015-12-22 12:45:23.000000000 +0600
  13. +++ b/src/plugin-comic/comic-plugin.h 2020-10-31 21:12:35.027177098 +0600
  14. @@ -14,5 +14,2 @@ if(interface::is_program_available("bsdt
  15. } else {
  16. - if(interface::is_program_available("unrar")) {
  17. - PluginManager::register_filetype("application/x-cbr", 1);
  18. - }
  19. if(interface::is_program_available("tar")) {
  20. diff -Naurp1 a/src/plugin-compressed/plugin-compressed.cpp b/src/plugin-compressed/plugin-compressed.cpp
  21. --- a/src/plugin-compressed/plugin-compressed.cpp 2015-12-22 12:45:23.000000000 +0600
  22. +++ b/src/plugin-compressed/plugin-compressed.cpp 2020-10-31 20:54:21.747227857 +0600
  23. @@ -62,7 +62,4 @@ bool iCompressed::get_archive_files () {
  24. {
  25. - cmd_args.push_back("unrar");
  26. - cmd_args.push_back("vb");
  27. - cmd_args.push_back("-c-");
  28. - cmd_args.push_back("-p-"); // do not query for password
  29. - cmd_args.push_back("--");
  30. + cmd_args.push_back("bsdtar");
  31. + cmd_args.push_back("-tf");
  32. line_parser = &iCompressed::parse_line;
  33. diff -Naurp1 a/src/plugin-compressed/plugin-compressed.h b/src/plugin-compressed/plugin-compressed.h
  34. --- a/src/plugin-compressed/plugin-compressed.h 2015-12-22 12:45:23.000000000 +0600
  35. +++ b/src/plugin-compressed/plugin-compressed.h 2020-10-31 20:55:10.758225581 +0600
  36. @@ -127,3 +127,3 @@ if(interface::is_program_available("bsdt
  37. - if(interface::is_program_available("unrar")) {
  38. + if(interface::is_program_available("bsdtar")) {
  39. PluginManager::register_filetype(GP_COMPRESSED_RAR, 1);