mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
28 lines
1.3 KiB
Diff
28 lines
1.3 KiB
Diff
--- a/src/process_pipeline.c
|
|
+++ b/src/process_pipeline.c
|
|
@@ -179,10 +179,10 @@ mp_process_find_all_processors(GtkListStore *store)
|
|
store, &iter, 0, buffer, 1, "(built-in) postprocess.sh", -1);
|
|
}
|
|
|
|
- // Find extra packaged postprocessor scripts
|
|
- // These should be packaged in
|
|
- // /usr/share/megapixels/postprocessor.d/executable
|
|
- sprintf(buffer, "%s/megapixels/postprocessor.d", DATADIR);
|
|
+ // Find extra system postprocessor scripts
|
|
+ // These should be accessible in
|
|
+ // /run/current-system/sw/share/megapixels/postprocessor.d/executable
|
|
+ sprintf(buffer, "/run/current-system/sw/share/megapixels/postprocessor.d");
|
|
DIR *d;
|
|
struct dirent *dir;
|
|
d = opendir(buffer);
|
|
@@ -192,8 +192,7 @@ mp_process_find_all_processors(GtkListStore *store)
|
|
continue;
|
|
}
|
|
sprintf(buffer,
|
|
- "%s/megapixels/postprocessor.d/%s",
|
|
- DATADIR,
|
|
+ "/run/current-system/sw/share/megapixels/postprocessor.d/%s",
|
|
dir->d_name);
|
|
gtk_list_store_insert(store, &iter, -1);
|
|
gtk_list_store_set(
|