aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-07-03 17:26:03 +0200
committerdec05eba <dec05eba@protonmail.com>2021-07-03 17:26:03 +0200
commitba7bce3317afc65770976add101ed93c797ccc57 (patch)
treefea88c3b179464e86d3d0e4cf6a7c0dfe96a71a6
parentd9d1363ee5a06eb6632e15a14afe64ec80c3df56 (diff)
Fix add command when in a directory with a plugin directory
-rwxr-xr-xautomediabin120760 -> 120760 bytes
-rw-r--r--src/html.c2
2 files changed, 2 insertions, 0 deletions
diff --git a/automedia b/automedia
index 5fe737d..dbd9c46 100755
--- a/automedia
+++ b/automedia
Binary files differ
diff --git a/src/html.c b/src/html.c
index c163ec8..e3d68a0 100644
--- a/src/html.c
+++ b/src/html.c
@@ -180,6 +180,7 @@ static int plugin_list_append_item_callback(const char *name, const char *url, v
static int get_plugin_filepath(const char *program_dir, const char *plugin_name, char *plugin_filepath) {
const char *path_components[] = { program_dir, "plugins" };
path_join(plugin_filepath, path_components, 2);
+ /*
if(file_exists(plugin_filepath) != 0) {
strcpy(plugin_filepath, "/usr/share/automedia/plugins");
if(file_exists(plugin_filepath) != 0) {
@@ -187,6 +188,7 @@ static int get_plugin_filepath(const char *program_dir, const char *plugin_name,
return -1;
}
}
+ */
strcat(plugin_filepath, "/");
strcat(plugin_filepath, plugin_name);