New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accept multiple directories as extras #1212
Comments
Hm, although I don't really oppose this wouldn't the current approach work for xi-term too? Setting config_dir (allowing users to put stuff in their |
Yes, but it's a more general issue to allow multiple extras directories.
I suppose xi-core could use all of them,
Not sure about Windows, but on Linux it should use |
Which isn't available on all systems, let alone be handled by xi. I guess we could add a 3rd parameter to client_started |
My memory isn't totally clear but I believe xi does allow the frontend to provide two config directories, a 'system' one and a 'user' one. The idea being that the frontend can put bundled plugins and themes somewhere private, without the user stepping on them. You specify this with the |
Yup, but the goal here was to use the |
I think in the particular case described above the current mechanism would work, though; the client just sends |
But XDG_DATA_DIR maps to multiple dirs, so that's not possible as of now. Anyway, I don't think it's worth it supporting multiple dirs either, it'd need some logic behind what path to prefer for conflicting files which I'd rather not have. |
XDG_DATA_DIRS is already preference-ordered as it is noted in specification.
It possible to take first directory from XDG_DATA_DIRS, I think. |
Yes, but frontends may specify dirs that aren't in the XDG standard too, so we'd need some logic behind this (e.g. with an enum which allows the front-end to select between different approaches for this). Anyway, in the short-term xi-term should just select one dir. Maybe you could draft a PR for xi-editor if you're interested in seeing this land? |
Xi-Editor Issue Template
Expected vs Actual
Actually client can set only one extras dir.
In a discussion xi-frontend/xi-term#110 it was mentioned to use XDG specification
XDG_DATA_DIRS
to place system-wide installed plugins, which is a collection of directories.Can protocol be updated to allow client to set multiple directories for extras?
The text was updated successfully, but these errors were encountered: