rishuinfinity / WallpaperSwitcher

Gnome Extension to switch wallpaper after a given interval
GNU General Public License v3.0
33 stars 6 forks source link

System log spam on switch #26

Open naelstrof opened 1 year ago

naelstrof commented 1 year ago

Using version 9 of Wallpaper Switcher, and gnome-shell 44.4

When it scans the directory for a switch, the system log is spammed with entries like the following.

gnome-shell[5703]: file ../glib/gio/gfileinfo.c: line 1633 (g_file_info_get_is_hidden): should not be reached
gnome-shell[5703]: GFileInfo created without standard::is-hidden
gnome-shell[5703]: file ../glib/gio/gfileinfo.c: line 1633 (g_file_info_get_is_hidden): should not be reached
gnome-shell[5703]: GFileInfo created without standard::is-hidden
gnome-shell[5703]: file ../glib/gio/gfileinfo.c: line 1633 (g_file_info_get_is_hidden): should not be reached
gnome-shell[5703]: GFileInfo created without standard::is-hidden
gnome-shell[5703]: file ../glib/gio/gfileinfo.c: line 1633 (g_file_info_get_is_hidden): should not be reached

For my folder with 2400 wallpaper images, and a 5 minute swap timer, the log ends up being gigantic.

Result from journalctl --vacuum-size=100M after a day of use.

Vacuuming done, freed 767.7M of archived journals from /var/log/journal/fc0ae74014274a9a9988e72861ffe592.
naelstrof commented 1 year ago

Running Arch Linux.

rishuinfinity commented 1 year ago

thanks for reporting, I'll try to recreate the error, and start working on it.

naelstrof commented 1 year ago

I realize it may be important to say that the images are located on an NTFS partition, since the error appears to have something to do with attributes.

It's so that my dual boot setup can share the same images. :window:

naelstrof commented 1 year ago

For posterity here's my temporary workaround using bash and gsettings.

#!/bin/bash
# ~/.local/bin/wallpaper_switcher.sh

wallpaper_folder=/run/media/naelstrof/Dragon/WallpaperOutput/
cd $wallpaper_folder
while true; do
    sleep 5m
    file=$(ls |sort -R | tail -1)
    gsettings set org.gnome.desktop.background picture-uri ${wallpaper_folder}/${file}
    gsettings set org.gnome.desktop.background picture-uri-dark ${wallpaper_folder}/${file}
done
#~/.config/autostart/wallpaper_switcher.desktop
[Desktop Entry]
Type=Application
Name=Wallpaper switcher
Exec=/home/<username>/.local/bin/wallpaper_switcher.sh

Need to also add the executable bit with chmod +x ~/.local/bin/wallpaper_switcher.sh.

mihalycsaba commented 1 year ago

I have this same error in the logs and it makes the system stutter really hard. My pictures aren't on an NTFS partition.