Giter Site home page Giter Site logo

Deepin compatibility about variety HOT 14 CLOSED

varietywalls avatar varietywalls commented on August 11, 2024
Deepin compatibility

from variety.

Comments (14)

es20490446e avatar es20490446e commented on August 11, 2024 1

The naming of the files is like this:
5a8a902147cb8a1e22f7e5220f4153c6.jpg

from variety.

es20490446e avatar es20490446e commented on August 11, 2024 1

If I:

  1. Set the Variety fetched folder as the same as the Deepin wallpapers folder.
  2. Fetch a wallpaper.

It appears two entries of the same wallpaper, one named "[name]_1.jpg" and the other "[name]_2.jpg". It doesn't happen when using a different fetched folder, double checked.

If I disable fetching, no entry is created. So Deepin doesn't fetch itself.

from variety.

es20490446e avatar es20490446e commented on August 11, 2024 1

I came to the same conclusion myself, that the design flaw is in Deepin itself.

I have reported it here. Thanks for your help.

from variety.

es20490446e avatar es20490446e commented on August 11, 2024 1

They agreed to remove the wallpaper folder, so this means that Variety will work on Deepin too!

from variety.

es20490446e avatar es20490446e commented on August 11, 2024

Also reported to Launchpad.

from variety.

peterlevi avatar peterlevi commented on August 11, 2024

I'm extremely wary of Variety automatically deleting stuff, especially in bulk. This has caused problems before (e.g. the download quota implementation). Also Variety does not "own" the /home/user/Pictures/Wallpapers folder in any way, so it sounds wrong for it to delete it.

What is the exact behavior in Deepin - if I switch 3 times between the files "abc.jpg" and "xyz.jpg" as wallpapers, what files will end up in /home/user/Pictures/Wallpapers - just "abc.jpg" and "xyz.jpg" or 6 differently named files?

from variety.

gleitoncampos avatar gleitoncampos commented on August 11, 2024

The process is:

  1. Variety download the img from a source to the folder /home/user/.config/variety/Downloaded/(Name_of_the_source)/ OR pick a img from one of the folders used as sources in the variety configuration;
  2. When variety apply a wallpaper, whatever it is (Downloaded,favorite, another folder), it will copy the img with a random name to the folder /home/user/Pictures/Wallpapper. If the folder Wallpaper don't exist, variety will create it.

If, for example, i will not download anything from variety, i will use a folder that i store my imgs. So, i put this folder in the list of sources of the variety. When it choose any img, variety will duplicate it to the Wallpaper folder with a random name. So, in some time, i will end with a folder "Cool Imgs", my original folder, and a folder "Wallpaper", created by variety, with the same content but with different names.

If the folder Wallpaper already exists and i'm using it to store the original imgs (my case), when it choose any img, it will duplicate the img in the same folder. But the duplicate just happen if the img with the random name don't exist. If I delete the img duplicated by the variety, when it choose that img again in the source, the duplicate will occur again, If I delete the original file, with the correct name, the duplicate don't occur.

I will be glad to post my variety configs, but for some reason, in the Deepin 15.5, when i click on the variety icon in taskbar, nothing happen. Tried uninstall, purge, reinstall but nothing. Seems that the "purge" commands isn't deleting config files stored in /usr/share/variety. If i delete it manualy, and reinstall, the preferences show for the first time, but the icon in the taskbar don't work...

PS: I'm the guy that posted the bug um launchpad.

from variety.

es20490446e avatar es20490446e commented on August 11, 2024

If I:

  1. Delete the Deepin wallpapers folder.
  2. Create a blank file with its same name.

Variety is no longer able change wallpaper. Nevertheless deleting the Deepin folder after selecting a wallpaper doesn't prevent Variety from working.

from variety.

es20490446e avatar es20490446e commented on August 11, 2024

So it seems that Variety is unable to control what happens in the Deepin Wallpapers folder in any way.

I think that the least surprising behaviour would be this. The first time that Variety is launched to copy the content of the Deepin Wallpapers folder into the Variety Fetched Wallpapers folder, then each time Variety changes wallpaper to remove the Deepin Wallpapers folder.

What do you think? Can I implement the fix like this?

from variety.

es20490446e avatar es20490446e commented on August 11, 2024

Better than that. Before changing wallpaper, Variety could check the content of the Wallpapers folder.

  • If the content is the current wallpaper only, Variety removes the folder.
  • If the content is more than the current wallpaper, Variety moves it into the Fetched folder. Then shows a notification about it.

from variety.

jlu5 avatar jlu5 commented on August 11, 2024

These replies are getting long winded... What is the actual problem we want to solve? Is Deepin making extra copies of wallpapers whenever you apply them? Variety alone shouldn't be doing anything like that at a cursory glance of set_wallpaper.

from variety.

es20490446e avatar es20490446e commented on August 11, 2024

Deepin makes a copy of every wallpaper you set inside "~/Pictures/Wallpapers", with an unlimited quota.

The folder gets huge pretty fast.

from variety.

jlu5 avatar jlu5 commented on August 11, 2024

I'm marking this as wontfix per https://bugs.launchpad.net/variety/+bug/1732293/comments/8

Rereading the context and Peter's response I think that this weird behaviour should really be fixed in Deepin instead of worked around in Variety. Your best bet is probably to use a specific folder for storing download images and automatically remove ~/Pictures/Wallpapers with a cronjob or something.

from variety.

jlu5 avatar jlu5 commented on August 11, 2024

Great to hear, and thanks for being so thorough & detailed the whole way! :)

from variety.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.