Bug 5082 - On debian, look for plugins in /etc/slimserver/Plugins
: On debian, look for plugins in /etc/slimserver/Plugins
Status: NEW
Product: Logitech Media Server
Classification: Unclassified
Component: Plugins
: 6.5.2
: PC Debian Linux
: -- enhancement (vote)
: Future
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-05-23 08:33 UTC by Marc Sherman
Modified: 2011-11-06 23:24 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Sherman 2007-05-23 08:33:35 UTC
Similar to the patch in bug 5081, this patch allows user-installed Plugins to be put in /etc/slimserver/Plugins.

--- /usr/share/perl5/Slim/Utils/OSDetect.pm.orig2       2007-05-23 10:41:11.000000000 -0400
+++ /usr/share/perl5/Slim/Utils/OSDetect.pm     2007-05-23 10:47:18.000000000 -0400
@@ -152,10 +152,18 @@
        # Debian specific paths.
        } elsif (isDebian()) {

-               if ($dir =~ /^(?:Plugins|Firmware|Graphics|HTML|MySQL|SQL|lib|Bin)$/) {
+               if ($dir =~ /^(?:Firmware|Graphics|HTML|MySQL|SQL|lib|Bin)$/) {

                        push @dirs, "/usr/share/slimserver/$dir";

+                } elsif ($dir eq 'Plugins') {
+
+                        # Look for default plugins in /usr/share,
+                        # and user-installed plugins in the config dir
+
+                        push @dirs, "/usr/share/slimserver/Plugins";
+                        push @dirs, "/etc/slimserver/Plugins";
+
                 } elsif ($dir eq 'IR') {

                         # Look for default IR files in /usr/share,
Comment 1 Alan Young 2011-11-06 23:24:51 UTC
Unassigned bugs cannot have a priority.