From 01622fd884f75e3028705c4b8302c373d12e63ee Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 6 Feb 2020 22:06:24 +0100 Subject: [PATCH] wallpaper: don't create symlinks This is useless. --- bin/build-wallpaper | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bin/build-wallpaper b/bin/build-wallpaper index 1310cff..66daf36 100755 --- a/bin/build-wallpaper +++ b/bin/build-wallpaper @@ -82,15 +82,9 @@ print("wallpaper: {}".format(" + ".join( ["`%s`" % x.filename[(len(options.directory) + 1):] for x in images]))) -# Link chosen wallpapers -for idx, image in enumerate(images): - target = "{}.{}".format(options.target, idx) - if os.path.lexists(target): - os.remove(target) - os.symlink(os.path.abspath(image.filename), target) - if len(screens) > 1 and len(images) == 1: # Wide wallpaper + image = images[0] if image.size != (screen.width_in_pixels, screen.height_in_pixels): image = image.resize((screen.width_in_pixels, screen.height_in_pixels), Image.CUBIC)