Bug 364995 - unable to save a file without typing the extension name, and a feature request
Summary: unable to save a file without typing the extension name, and a feature request
Status: RESOLVED DUPLICATE of bug 363672
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-02 08:33 UTC by Jamie
Modified: 2016-09-10 17:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jamie 2016-07-02 08:33:34 UTC
spectacle --version
spectacle 15.12.3

lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu Yakkety Yak (development branch)
Release:	16.10
Codename:	yakkety



1.Unable to save using Save as without typing the extension name even though PNG Image is selected I still have to manually type .png everytime. 

Shows an error box

Error - Spectacle

QImageWriter cannot write image: Unsupported image format. 

2. Doesn't remember the last used directory. However I just noticed that /home/jamie/Pictures had reverted back from my previous setting so changing it again.

3. Actually is a feature request or a feature that I am unaware of. I don't see a way to prompt using the Save option for data. I would like specifically to append to filename based on text entered in a popup dialog. 

Example from Configure save options %Y%M%D_

I was trying to do this 

%Y%M%D_$(kdialog --title "Item Number?" --inputbox "Please enter the item number you wish to save the screenshot for. If there are multiple files leave a comment after the item number.")

I also tried it as

%Y%M%D_$(kdialog --title "Ticket Number?" --inputbox "Please enter the ticket number you wish to save the screenshot for. If there are multiple files leave a comment after the ticket number.")

I also tried to make that an alias and then use it using %Y%M%D_$itemnumber and also %Y%M%D_$(itemnumber) but it saves the file name as exactly what is entered and doesn't do bash expansion or actually run the alias. Is it being removed or ignored by the scripts input validation?

This is what the file saved as and I had checked that the alias is indeed working if I call it from a command prompt.
20160702_$itemnumber.png

4. Sorry though of something else. Although I have Area: Rectangular Region or Area:Current Screen it always takes a screenshot of all three screens which is a security issue for me if something is accidentally saved that isn't supposed to be. Is there a bug in checking that setting when opening. It wasn't an issue in the previous KDE screenshot app. ? Thanks

Reproducible: Always

Steps to Reproduce:
1. Take a screnshot. Select save as and enter a filename w/o an extension. It will fail everytime.
2. It may be fixed now. I found the save directory was no longer set to my previous setting after a reboot
3.try saving a file with a variable in the name that is defined system wide with an alias or using the command inside of the filename naming options
4. Open Spectacle with the PrintScreen button
Comment 1 Jamie 2016-07-02 13:59:09 UTC
For some reason the bug about the save directories wasn't show up so #2 can be ignored since it's a solved issue in an earlier version. I'm trying to compile the newest though because the Ubuntu version is an older version.
Comment 2 Christoph Feck 2016-09-10 17:11:45 UTC
Please report one issue per ticket.

Tickets which have multiple requests cannot be handled in bugzilla. For example, issue 1 is a duplicate of bug 363672, but this resolution can only be applied to the whole ticket.

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