← Back to team overview

simple-scan-team team mailing list archive

Re: [Merge] lp:~victor-mireyev/simple-scan/bug-719741 into lp:simple-scan

 

personally i have no problem with adding the extension to the entered filename. on the contrary, the longer i think about it, the more i am in favor.

while extensions in linux are not as important as extensions in windows, extensionless files suck in every graphical userface i know and use. on the command line they are acceptable sometimes (but e.g. github encourages to name your file README.md). extensionless "files" might be ok in interfaces that do not expose actual files and where data is only ever viewed with the original application (think iPhone apps, Google Drive Documents/Spreadsheets) but never with a generic file manager (think explorer, nautilus) .

so if scanned/saved images were exclusive to simple scan, we might consider dropping the extension and never look back. but as long as the save functionality exports data to the shared filesystem where it is viewed/accessed by different applications, it is just selfish and bad attitude to go extensionless.
as long as there is no doubt about the user's intention, just do it even if it is not expressed 100% formally correct. and currently there is no reasonable doubt that the user does not want to create an extensionless file. this could change with time, but in the meantime simple scan should behave simple, friendly and do nothing unexpected and not display unnecessary warnings that only cause users to ignore warnings.

also, a different point of view:

the filename in the filesystem by definition consists of the human-readable-part entered in the text field plus the abbreviation of the filetype selected in the dropdown list.

so if you type "scan1" and select portable data format, you get "scan1.pdf".

simple scan does not add something to the name, you just enter the name in two fields.

on the contrary, sometimes simple scan *REMOVES* something from the name: if what you specify to be the human-readable-part happens to end with the abbreviation of the filetype selected, the abbrevation is skipped. if you type "scan1.pdf" and select portable data format, you do not end up with "scan1.pdf.pdf" because that would be just silly. that is what everyone wants and expects. to override, you can always put "scan1.pdf.pdf" in the box -- no third ".pdf" will be added...
-- 
https://code.launchpad.net/~victor-mireyev/simple-scan/bug-719741/+merge/166375
Your team Simple Scan Development Team is subscribed to branch lp:simple-scan.


References