anyrun icon indicating copy to clipboard operation
anyrun copied to clipboard

feat: follow XDG spec for the configuration directory

Open NotAShelf opened this issue 8 months ago • 1 comments

Closes #208

Follows the XDG specification for configuration files.

With this change, Anyrun now searches $XDG_CONFIG_HOME/anyrun (most commonly $HOME/.config/anyrun) and then directories in $XDG_CONFIG_DIRS (defaults to /etc/xdg iirc). We fall back to the original /etc/anyrun as a last resort Updated plugin search paths to include XDG directories.

I've also added $XDG_CONFIG_HOME/anyrun/plugins and /etc/xdg/anyrun/plugins to the search path.


Ported by a stale GTK4 port branch that I was experimenting with, let me know if you see anything left over that will cause breakage.

NotAShelf avatar Apr 11 '25 09:04 NotAShelf

If we start messing with the paths, we should probably integrate changes proposed by #202 as well. System installation of plugins should indeed be in /usr/lib/anyrun but not sure if user specific plugins should be in the config folder. Any input on the user plugins folder?

Kirottu avatar Apr 11 '25 15:04 Kirottu

This will be fixed when the relm4 work is done, merged and released.

Kirottu avatar Aug 25 '25 11:08 Kirottu