scripts: also look in $XDG_CONFIG_HOME/scripts

This commit is contained in:
iczero 2021-11-30 06:50:28 -05:00 committed by George Kiagiadakis
parent e3a161273d
commit a452250b47

View file

@ -132,6 +132,7 @@ find_script (const gchar * script, gboolean daemon)
return g_strdup (script);
return wp_find_file (WP_LOOKUP_DIR_ENV_DATA |
WP_LOOKUP_DIR_XDG_CONFIG_HOME |
WP_LOOKUP_DIR_ETC |
WP_LOOKUP_DIR_PREFIX_SHARE,
script, "scripts");