Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open in Browser generates a folder with lots of files #2389

Closed
alfredoq opened this issue Mar 26, 2023 · 3 comments
Closed

Open in Browser generates a folder with lots of files #2389

alfredoq opened this issue Mar 26, 2023 · 3 comments
Labels
question This issue provides user support and doesn't require any changes to the repo

Comments

@alfredoq
Copy link

Good morning,

I noticed that opening a URL from newsboat with Google Chrome generate a '~google-chrome' folder containing several subfolfders (i.e. Default, WidevineCdm, GrShaderCache, etc). The content of this folder is updated every time a new feed is opened in the browser.

My question is: is it possible to prevent this data dumping to the folder, o at least purge it upon closing newsboat?

Thank you very much in advance for the support,

kind regards

Alfredo

@dennisschagt
Copy link
Member

dennisschagt commented Apr 2, 2023

Hi Alfredo,
Newsboat does not create these kinds of folders, so I expect that Google Chrome creates the folder by itself.
Does Chrome also create the folder if you start it from outside of Newsboat?
Do you manually configure the browser in the newsboat config (via a browser crhome … line) or is it configured via the BROWSER environment variable? (and do either of those contain extra command line arguments?)

@alfredoq
Copy link
Author

alfredoq commented Apr 4, 2023

Dear Dennis,

thank you for your reply.
After struggling with this issue for a couple of days, I noticed that indeed Chrome was generating the folder. Also, some other programs were generating additional folder, so I suspected that the issue was somehow related to a global environment variable. In my case I changed the $XDG_DATA_HOME variable because I wanted to store Newsboat database in a custom folder. But this global variable also configured additional paths to Chrome and other apps, that is why these folders were being generated in an unwanted place,

I restored de $XDG_DATA_HOME configuration and everything was solved,

thank you again for the feedback

@dennisschagt dennisschagt added the question This issue provides user support and doesn't require any changes to the repo label Apr 7, 2023
@dennisschagt
Copy link
Member

Alright, nice to hear you found the cause.

If you still want to store the database in a specific location, you could try using Newsboat's --cache-file=/path/to/cache.db option.
Be aware that you would then need to specify that every time (might be possible using an alias in your shell).

Just to be save, make sure you have backed up Newsboat's config/urls/cache files before starting to use that option.

Regardless, looks like the problem is resolved so I'm closing this issue.
Feel free to open a new issue (or reopen this issue) in case of related problems/questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This issue provides user support and doesn't require any changes to the repo
Projects
None yet
Development

No branches or pull requests

2 participants