xdg-screensaver should call system perl instead of just perl
Submitted by Tim Heaney
Assigned to Portland Bugs
Description
Created attachment 120820 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.
Attachment 120820, "patch against current git repo":
xdg-screensaver.in.patch
Version: 1.1.0 rc3