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

Fetch local background every new tab #571

Open
Cyliann opened this issue Feb 24, 2025 · 1 comment
Open

Fetch local background every new tab #571

Cyliann opened this issue Feb 24, 2025 · 1 comment

Comments

@Cyliann
Copy link

Cyliann commented Feb 24, 2025

Is your feature request related to a problem? Please describe.
I set my background to a local file that is a soft link (linux) excpecting it to update whenever I update what the link points to, but sadly that's not the case. I guess Bonjourr caches the image somewhere.
My use case is that the link points to my current wallpaper, so I wanted Bonjourr to update the background accordingly.

Describe the solution you'd like
Every time I open a new tab the file is re-fetched to update the image.

Describe alternatives you've considered
Somehow programmatically change the background?

@victrme
Copy link
Owner

victrme commented Feb 27, 2025

Hi @Cyliann, something similar will be possible in the next update! You'll be able to add a list of distant URLs for your backgrounds.

This is not exactly what you mean, but we have to keep a really long cache control for performance reasons. What you could do is copy paste the same URL as many times you want, and simply add a different search query for each URL like this:

http://localhost:8080/your-image.jpg?n=1
http://localhost:8080/your-image.jpg?n=2
http://localhost:8080/your-image.jpg?n=3
http://localhost:8080/your-image.jpg?n=4

I just realized that you meant a file path and not a local server. I'm not sure it will be possible without a local http server, but we might be able to use the browser's file system API 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants