Skip to content

Conversation

@NotAShelf
Copy link
Collaborator

@NotAShelf NotAShelf commented Apr 11, 2025

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.

@Kirottu
Copy link
Collaborator

Kirottu commented Apr 11, 2025

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
Copy link
Collaborator

Kirottu commented Aug 25, 2025

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

@Kirottu Kirottu closed this Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support XDG_CONFIG_HOME

2 participants