Bug 166826 - automatic selection of file names and type fails in file 'Save as' dialog
Summary: automatic selection of file names and type fails in file 'Save as' dialog
Status: RESOLVED WORKSFORME
Alias: None
Product: ksnapshot
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Richard Moore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-17 12:54 UTC by Imr
Modified: 2009-09-22 12:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Imr 2008-07-17 12:54:11 UTC
Version:            (using KDE 4.0.98)
Installed from:    Mandriva RPMs
OS:                Linux

Here is the expected behavior I expect from ksnapshot:
I do a screenshot, I save it as file1.png, i do another, I cick 'save as' then 'Save' in File Selector, and it is saved as file2.png.

Actual behavior:
1/ I do a screenshot, I save it as file1.png, it do another, I cick 'save as', the  bar is empty, if I click save or press enter, nothing happens.

2/ If i check the option 'automatically selection name and file extension', the location bar stays empty next time, and  
click save or press enter wont do anything either. I have to type file2.png.

3/ If I enter a name without number, like 'test' and click 'Save', it is indeed saved as test, no extension, no number and it is a png. Next Save is not numbered or incremented.

4/ If I uncheck 'automatically selection of name and file extension' (from french menu), and enter 'file' as name, the name is saved as 'file'.

5/ If I uncheck 'automatically selection of name and file extension' (from french menu), and enter 'file1.png' as name, the name is saved as 'file1.png'. Saving next screenshot, when I enter 'file' as a file name, file1.png is proposed in the url bar and the icon file1.png is selected, dismissing the proposed 'file1.png' name and clicking directly 'Save' will result anyway in 'file1.png' being choosen, probably from the icon window selection, and the confirmation dialog to overwrite it appear.

6/ About file type, the automatically select file type deliver a picture of the choosen type ok, but fails to write the correct extension. I understand the extension are not needed in linux and would gladly see them disappear but some other OS need them.

Conclusion: all in all, a regression in usability simplicity wise, I also fail to see any kind of automatisation there so the dialog automatically is puzzling, and a bug in file name selection.

Suggestion: a 'Save Directly' button in ksnapshot under 'Save as' which saves directly to the last used Folder, with the last used name, in the last used type, incremented. It reverts to 'Save as' dialog when used for the first time of this session and when it tries to overwrite an existing file.
Comment 1 Kamil Neczaj 2008-09-19 15:26:44 UTC
I'm using KDE 4.1.1 and can confirm it partially, but in my opinion there are only two misbehaviours.

1. There is a proposistion of next screenshot' filename. If the file 'foo' already exist ksnapshot propose 'foo1', when 'foo1' also exist the proposition is 'foo2' so incrementation works well. The problem is that proposition of the filename appears only on the titlebar, not in 'save as' dialog.
2. Confirming lack of file extension when the file type filter is set to 'All supported files'. In this situation when the user doesn't type any extesion file is saved as PNG but no extension is automatically added.
Comment 2 Carl 2008-11-11 20:03:24 UTC
I can confirm this bug, it is a serious usability issue. I rely on Ksnapshot for making manuals, and having to enter a filename for each snapshot seriously affects my workflow.
Comment 3 Mathias Soeken 2008-11-11 21:43:36 UTC
SVN commit 882995 by msoeken:

Show filename in KFileDialog

CCBUG: 166826


 M  +1 -0      ksnapshot.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=882995
Comment 4 Mathias Soeken 2008-11-24 08:56:04 UTC
SVN commit 888260 by msoeken:

Backport r882995

CCMAIL: rich@kde.org
CCBUG: 166826


 M  +1 -0      ksnapshot.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=888260
Comment 5 FiNeX 2009-09-21 21:37:30 UTC
It looks that now the bug has been fixed :-)
Comment 6 Kamil Neczaj 2009-09-22 12:41:35 UTC
works for me too