From 7296758e03adee63b0cec68ba9585762d0d2e759 Mon Sep 17 00:00:00 2001 From: lainsce Date: Fri, 16 Aug 2024 12:03:01 -0300 Subject: [PATCH] We are only interested in images --- fuses/appearance/WallpaperGrid.vala | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fuses/appearance/WallpaperGrid.vala b/fuses/appearance/WallpaperGrid.vala index 8398b40..0543db4 100644 --- a/fuses/appearance/WallpaperGrid.vala +++ b/fuses/appearance/WallpaperGrid.vala @@ -310,7 +310,13 @@ public class Appearance.WallpaperGrid : Gtk.Grid { } var file = directory.resolve_relative_path (file_info.get_name ()); - add_wallpaper_from_file.begin (file); + if (file.get_path ().contains (".png") || + file.get_path ().contains (".jpg") || + file.get_path ().contains (".jpeg") || + file.get_path ().contains (".gif") || + file.get_path ().contains (".webp")) { + add_wallpaper_from_file.begin (file); + } } if (toplevel_folder) {