Bug#914109: xscreensaver-data: looks for image files to display even though it is told not to

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#914109: xscreensaver-data: looks for image files to display even though it is told not to

Francesco Potortì
Package: xscreensaver-data
Version: 5.40-1
Severity: normal
File: /usr/bin/xscreensaver-getimage-file

This error popped up in the last weeks, without me changing any
configuration.

Even though I have this in my ~/.xscreensaver:

grabDesktopImages:  True
grabVideoFrames:    False
chooseRandomImages: False
imageDirectory:

xscreensaver gives an error saying that xscreensaver-getimage-file
cannot find the image directory.

P.S. is this package still maintained?  I see lots of very old bugs, one
from 2001...

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (101, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE=C:en_GB:en:en_US:it:fr:es (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages xscreensaver-data depends on:
ii  libc6               2.27-8
ii  libgdk-pixbuf2.0-0  2.38.0+dfsg-6
ii  libglib2.0-0        2.58.1-2
ii  libice6             2:1.0.9-2
ii  libjpeg62-turbo     1:1.5.2-2+b1
ii  libsm6              2:1.2.2-1+b3
ii  libwww-perl         6.36-1
ii  libx11-6            2:1.6.7-1
ii  libxext6            2:1.3.3-1+b2
ii  libxft2             2.3.2-2
ii  libxmu6             2:1.1.2-2
ii  libxt6              1:1.1.5-1

xscreensaver-data recommends no packages.

Versions of packages xscreensaver-data suggests:
ii  xscreensaver  5.40-1

-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#914109: xscreensaver-data: looks for image files to display even though it is told not to

Tormod Volden-3
Hi,
Thanks for your bug report. I can confirm this issue, for instance by
running glitchpeg standalone:

usage: xscreensaver-getimage-file [--verbose] directory-or-feed-url

       Prints the name of a randomly-selected image file.  The directory
       is searched recursively.  Images smaller than 255x255 are excluded.

       The directory may also be the URL of an RSS/Atom feed.  Enclosed
       images will be downloaded and cached locally.

glitchpeg: unable to read


Best regards,
Tormod



On Mon, Nov 19, 2018 at 3:45 PM Francesco Potortì wrote:

>
> Even though I have this in my ~/.xscreensaver:
>
> grabDesktopImages:  True
> grabVideoFrames:    False
> chooseRandomImages: False
> imageDirectory:
>
> xscreensaver gives an error saying that xscreensaver-getimage-file
> cannot find the image directory.
>
> P.S. is this package still maintained?  I see lots of very old bugs, one
> from 2001...
>

Reply | Threaded
Open this post in threaded view
|

Bug#914109: xscreensaver-data: looks for image files to display even though it is told not to

Jamie Zawinski
Well, there's no way for glitchpeg to work on your desktop image, because your desktop is not a jpeg...

Reply | Threaded
Open this post in threaded view
|

Bug#914109: xscreensaver-data: looks for image files to display even though it is told not to

Francesco Potortì
>Well, there's no way for glitchpeg to work on your desktop image, because your desktop is not a jpeg...

Glitchpeg or xscreensaver could convert the desktop image to jpeg, but
that would be a feature request.

From a user point of view, if I say that you should not look for image
files to display, you should just not do that.  This is a bug in
Xscreensaver.  There is no good reason why it should give an error.

--
IPIN'19 http://ipin2019.isti.cnr.it    Voice:  +39.050.621.3058
Francesco Potortì (ricercatore)        Mobile: +39.348.8283.107
ISTI - Area della ricerca CNR          Skype:  wnlabisti
via G. Moruzzi 1, I-56124 Pisa         Web:    http://fly.isti.cnr.it

Reply | Threaded
Open this post in threaded view
|

Bug#914109: xscreensaver-data: looks for image files to display even though it is told not to

Jamie Zawinski
> From a user point of view, if I say that you should not look for image
> files to display, you should just not do that.  This is a bug in
> Xscreensaver.  There is no good reason why it should give an error.

With your settings, the only option is to change the failure mode from "print an error message as text", to "don't print any text and just display colorbars or black instead".

Doesn't seem like much of an improvement to me. So I'm not gonna spend time on that.

Reply | Threaded
Open this post in threaded view
|

Bug#914109: xscreensaver-data: looks for image files to display even though it is told not to

Francesco Potortì
>> From a user point of view, if I say that you should not look for image
>> files to display, you should just not do that.  This is a bug in
>> Xscreensaver.  There is no good reason why it should give an error.
>
>With your settings, the only option is to change the failure mode from
>"print an error message as text", to "don't print any text and just
>display colorbars or black instead".

As a user, I would expect that if I say "don't look fo images on my
disk" nobody would say "hey, you know? I cannot find images on your
disk".  Maybe I am naive, but this sounds obvious to me.

This means that this is a bug.

As a programmer, knowing the above I can see at least two ways out.  For
a start, Xscreensaver should avoid calling a program which needs image
files when it is told that disk files should not be read.  As far as the
specific program is concerned, it could convert the display image to
JPEG, if that's really what it needs.

Maybe none of these is simple or maybe no one is willing to do that.
But this is different from ignoring the problem.

As a maintainer, I could say that the problem is real and that it will
be pushed upstream.  Which again is different from not spending time on
it.

>Doesn't seem like much of an improvement to me. So I'm not gonna spend
>time on that.

It is certainly would be an improvement from a user point of view to not
seeing an error which is meant for a programmer.

That said, thank you for helping maintaining Xscreensaver.

--
IPIN'19 http://ipin2019.isti.cnr.it    Voice:  +39.050.621.3058
Francesco Potortì (ricercatore)        Mobile: +39.348.8283.107
ISTI - Area della ricerca CNR          Skype:  wnlabisti
via G. Moruzzi 1, I-56124 Pisa         Web:    http://fly.isti.cnr.it

Reply | Threaded
Open this post in threaded view
|

Bug#914109: xscreensaver-data: looks for image files to display even though it is told not to

Jamie Zawinski
To be clear: my intention is to ignore this trivial problem.