Bug 293007

Summary: Slideshow screensaver truncates file names at the first period, instead of at the last one
Product: kscreensaver Reporter: Marcelo Sales <mmtsales>
Component: screensaversAssignee: kscreensaver bugs tracking <kscreensaver-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Marcelo Sales 2012-01-31 23:59:22 UTC
Version:           unspecified (using KDE 4.7.4) 
OS:                Linux

When configured to show the file names, slideshow screensaver tries to hide the extension of the file name when displaying it. However, it does this truncating the file name at the first period from left to right. This causes file names which have periods in them to be truncated in the wrong place.
Slideshow screensaver should truncate the file name at the last period in it, not the first one.
I have thousands of pictures named like this: 
"yyyy.mm.dd - Name_of_the_picture.jpg"
When displaying these pictures names, slideshow screensaver shows only "yyyy".


Reproducible: Always

Steps to Reproduce:
1. name a picture using the following pattern: "yyyy.mm.dd - Name_of_the_picture.jpg"
2. put this picture alone in a directory
3. configure slideshow screensaver to show pictures in the above mentioned directory and turn on the "Show names" option
4. activate the screensaver

Actual Results:  
The picture is displayed with the following name: yyyy


Expected Results:  
The picture should be displayed with the following name: yyyy.mm.dd - Name_of_the_picture
Comment 1 Christoph Feck 2012-02-10 17:59:14 UTC

*** This bug has been marked as a duplicate of bug 175262 ***