Skip to content
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

Check more places where config folder could be #338

Open
1 task done
tjapro opened this issue Jan 22, 2023 · 1 comment
Open
1 task done

Check more places where config folder could be #338

tjapro opened this issue Jan 22, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@tjapro
Copy link

tjapro commented Jan 22, 2023

Have you checked for existing feature requests?

  • Completed

Summary

Today, pulsar put the config folder .pulsar in the home directory.
And the only way to change the location is via a Enviroment Variable.

This solution, even simple, is not good enough in some directory schemas.
For example, in my case i want all config files and folders be inside the ~/.config folder.

If the program searched in other "default" config places would be much easier.

What benefits does this feature provide?

More flexibily to save and organize the config files.

Many people use .config as the default place for their dotfiles (just search "dotfiles" in github).

Any alternatives?

There is a community package - "syncsettings" - but it puts the program configuration inside a private Gist wich is not really invisible.

Other examples:

This will be more compicated, but ...

  • Change the "desktop icon" to open with the ENV_VAR setted.
  • Set the ENV_VAR globally in the system.

Other

Function is case: https://github.com/pulsar-edit/pulsar/blob/master/src/main-process/start.js#L137

Called in:

const config = getConfig();

@tjapro tjapro added the enhancement New feature or request label Jan 22, 2023
@Daeraxa
Copy link
Member

Daeraxa commented Jan 23, 2023

We already have a discussion for going further and adhering to the XDG base spec - https://github.com/orgs/pulsar-edit/discussions/68 so it is something we are aware of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants