aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautomediabin120760 -> 120760 bytes
-rw-r--r--src/html.c14
2 files changed, 5 insertions, 9 deletions
diff --git a/automedia b/automedia
index dbd9c46..25e8856 100755
--- a/automedia
+++ b/automedia
Binary files differ
diff --git a/src/html.c b/src/html.c
index e3d68a0..15d5911 100644
--- a/src/html.c
+++ b/src/html.c
@@ -178,17 +178,13 @@ static int plugin_list_append_item_callback(const char *name, const char *url, v
/* Store result in @plugin_filepath */
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);
- /*
+ (void)program_dir;
+
+ strcpy(plugin_filepath, "/usr/share/automedia/plugins");
if(file_exists(plugin_filepath) != 0) {
- strcpy(plugin_filepath, "/usr/share/automedia/plugins");
- if(file_exists(plugin_filepath) != 0) {
- fprintf(stderr, "Failed to find plugins directory\n");
- return -1;
- }
+ fprintf(stderr, "Failed to find plugins directory\n");
+ return -1;
}
- */
strcat(plugin_filepath, "/");
strcat(plugin_filepath, plugin_name);