<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - xdg-screensaver should call system perl instead of just perl"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93596">93596</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>xdg-screensaver should call system perl instead of just perl
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Portland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>1.1.0 rc3
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>xdg-utils
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>portland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>theaney@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=120820" name="attach_120820" title="patch against current git repo">attachment 120820</a> <a href="attachment.cgi?id=120820&action=edit" title="patch against current git repo">[details]</a></span>
patch against current git repo

I installed an alternate version of Perl higher in my path than the system perl
and started getting warnings when I called parole

$ parole foo.mp4
Can't locate Net/DBus.pm in @INC (you may need to install the Net::DBus module)
(@INC contains: /home/tim/perl/lib
/home/tim/.plenv/versions/5.22.1/lib/perl5/site_perl/5.22.1/x86_64-linux
/home/tim/.plenv/versions/5.22.1/lib/perl5/site_perl/5.22.1
/home/tim/.plenv/versions/5.22.1/lib/perl5/5.22.1/x86_64-linux
/home/tim/.plenv/versions/5.22.1/lib/perl5/5.22.1 .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

After some fussing, I determined that the warning was coming from
xdg-screensaver, specifically, the screensaver_gnome_screensaver() function. It
calls Perl with just "perl -e" which assumes that whatever perl is highest in
the path has the Net::DBus module. I changed line 918 from "perl -e" to
"/usr/bin/perl -e" and now all is well.

$ xdg-screensaver --version
xdg-screensaver 1.1.0 rc3

$ lsb_release --description
Description:    Ubuntu 15.10

That's on my system, but the issue still seems to be present. I've attached a
patch against the current source.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>