I am able to run the GUI of ChromeCacheView.exe via wine on Raspberry Pi Bookwork OS (v12). I use the below command for this, where F:\ maps to the OS root folder:
Code: Select all
wine 'F:\home\pi\Documents\ChromeCacheView.exe'
Code: Select all
wine 'F:\home\pi\Documents\ChromeCacheView.exe' -folder 'F:\home\pi\.cache\chromium\Default\Cache'
The issue comes when including the "/copycache" and "/CopyFilesFolder" parameters of chromecacheview.exe. In this scenario, the tool is meant to operate purely as a command-line tool (doesn't launch the GUI), and automatically extract out the specified content to the folder provided. This is how I intent to use the tool with wine.
Running the below command on Windows works, extracting any json files present in the Chrome cache associated with the specified URL, and placing a copy in the folder specified by the /CopyFilesFolder parameter:
Code: Select all
ChromeCacheView.exe /folder "C:\Users\ant\AppData\Local\Google\Chrome\User Data\Default\Cache" /copycache http://headers.jsontest.com "json" /CopyFilesFolder C:\Users\ant\dump
Code: Select all
wine 'F:\home\pi\Documents\ChromeCacheView.exe' /folder 'F:\home\pi\.cache\chromium\Default\Cache' /copycache http://headers.jsontest.com "json" /CopyFilesFolder 'F:\home\pi\dump'
Code: Select all
wine F:\\home\\pi\\Documents\\ChromeCacheView.exe /folder F:\\home\\pi\\.cache\\chromium\\Default\\Cache' /copycache http://headers.jsontest.com "json" /CopyFilesFolder F:\\home\\pi\\dump
I know there are files in the cache to extract because launching the GUI tool with the below command shows me the list of cached files I expect to see.
Code: Select all
wine 'F:\home\pi\Documents\ChromeCacheView.exe' /folder 'F:\home\pi\.cache\chromium\Default\Cache'
I think the /copycache parameter might be part of the issue. As the documentation for ChromeCacheView.exe points out (scroll towards bottom of https://www.nirsoft.net/utils/chrome_cache_view.htm ), the /copycache parameter expects two values:
Code: Select all
/copycache <URL> <Content Type>
"Copy files from the cache into the folder specified in /CopyFilesFolder parameter. In the <URL> parameter, you can specify the URL of the Web site (for example: http://www.nirsoft.net) or empty string ("") if you want to copy files from all Web sites. In the <Content Type> parameter, you can specify full content type (like image/png), partial content type (like 'image') or empty string ("") if you want to copy all types of files."
I'm not sure if wine can handle accepting two values for a parameter, or if there is a special way to construct the command so that it can parse it correctly - if that's what the issue is of course. Hoping someone might have come across a similar issue before and might be able to point me in the right direction.
Thanks in advance.