cutter icon indicating copy to clipboard operation
cutter copied to clipboard

specify additional plugin dirs

Open nicholascioli opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

When running cutter on NixOS, it currently only searches the plugin directory of the base install directory of itself and the user's $HOME/.local variants. Without a way to specify additional plugin directories, packaging other plugins requires recompiling the cutter package and manually copying in the generated plugins, which takes a while.

Describe the solution you'd like

A simple way to specify additional plugin directories to search. An environment variable or cli argument works.

Describe alternatives you've considered

A configuration file would probably also work, but be more of a hassle to manage statelessly.

Additional context

The code which handles adding search paths is located here.

If I have some time I'll make a PR to add this, but I'd like to see what you prefer in terms of CLI arg or env variable before starting.

nicholascioli avatar Jun 22 '23 07:06 nicholascioli

You can already do that by either:

  • specifying CUTTER_EXTRA_PLUGIN_DIRS at build time if you want to add few fixed directories
  • using XDG_DATA_DIRS environment variable if you want to change dynamically after Cutter is already compiled

karliss avatar Oct 10 '23 17:10 karliss