# Author: Nicolas Roudaire <nikrou77@gmail.com>
# Description: Use FHS compliant paths by default
#  Add the missing #! sequence

--- ploader.orig/src/ploader.pl
+++ ploader/src/ploader.pl
@@ -1,3 +1,4 @@
+#!/usr/bin/perl
 # +-----------------------------------------------------------------------+
 # | pLoader - a Perl photo uploader for Piwigo                            |
 # +-----------------------------------------------------------------------+
@@ -43,9 +44,10 @@
 eval {
     my $app = Uploader::GUI::wxApp->new(
             {
-                root_dir      => $ENV{PLOADER_ROOT}||'..',
+		bin_dir      => 'conf',
+                root_dir     => '/usr/share/ploader',
                 resource_dir => 'res',
-                locale_dir   => 'locale',
+                locale_dir   => '/usr/share/locale',
                 argv         => [ grep { -f $_ } @ARGV ],
             }
     );
