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

123456789101112131415161718192021222324252627282930
  1. diff -Nur gloobus-preview-0.4.5.333.orig/src/plugin-compressed/plugin-compressed.cpp gloobus-preview-0.4.5.333/src/plugin-compressed/plugin-compressed.cpp
  2. --- gloobus-preview-0.4.5.333.orig/src/plugin-compressed/plugin-compressed.cpp 2015-01-09 12:57:23.095971000 -0200
  3. +++ gloobus-preview-0.4.5.333/src/plugin-compressed/plugin-compressed.cpp 2015-01-09 13:01:54.043323618 -0200
  4. @@ -60,11 +60,8 @@
  5. }
  6. else if ( type == GP_COMPRESSED_RAR )
  7. {
  8. - cmd_args.push_back("unrar");
  9. - cmd_args.push_back("vb");
  10. - cmd_args.push_back("-c-");
  11. - cmd_args.push_back("-p-"); // do not query for password
  12. - cmd_args.push_back("--");
  13. + cmd_args.push_back("bsdtar");
  14. + cmd_args.push_back("-tf");
  15. line_parser = &iCompressed::parse_line;
  16. }
  17. else if ( type == GP_COMPRESSED_TAR
  18. diff -Nur gloobus-preview-0.4.5.333.orig/src/plugin-compressed/plugin-compressed.h gloobus-preview-0.4.5.333/src/plugin-compressed/plugin-compressed.h
  19. --- gloobus-preview-0.4.5.333.orig/src/plugin-compressed/plugin-compressed.h 2015-01-09 12:57:23.095971000 -0200
  20. +++ gloobus-preview-0.4.5.333/src/plugin-compressed/plugin-compressed.h 2015-01-09 13:02:22.060239355 -0200
  21. @@ -125,7 +125,7 @@
  22. PluginManager::register_filetype(GP_COMPRESSED_7Z, 1);
  23. }
  24. - if(interface::is_program_available("unrar")) {
  25. + if(interface::is_program_available("bsdtar")) {
  26. PluginManager::register_filetype(GP_COMPRESSED_RAR, 1);
  27. }