mariusknaust / spotlight

Windows 10 Spotlight background images for Gnome
https://aur.archlinux.org/packages/spotlight/
55 stars 17 forks source link

Add silent option and KDE functionality #12

Open sfjuocekr opened 3 years ago

sfjuocekr commented 3 years ago

I've been using Plasma for a while and still had these changes laying around :)

mariusknaust commented 3 years ago

Thanks for sharing :)

At least for Gnome it is possible to disable notifications per application in the gnome settings when they provide the desktop-entry as a hint (as it is the case for spotlight). You might want to check if this is also true for KDE?

There was an attempted made to support other desktop environments than Gnome in the multiDEsupport branch. But, I couldn't find a a way to determine the desktop environment when the user service is started right after the login, as XDG_CURRENT_DESKTOP seems not to be set at that point. If you know a way, that would be great!

sfjuocekr commented 3 years ago

You can do this, but if you run spotlight manually it still pops up when I didn't want it to :)

I'll look into it, if I figure it out I'll make a pull request!

Maybe making the default behavior from CLI silent would be better, but I had not looked into that.