! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Command-line parameters -c -f don't work together as expected.
Status:
RESOLVED: FIXED
Product:
Xfce4-screenshooter
Component:
General

Comments

Description lockywolf 2018-07-03 16:45:16 CEST
As xfce4-screenshooter --help tells us:

Application Options:
  -c, --clipboard          Copy the screenshot to the clipboard
  -d, --delay              Delay in seconds before taking the screenshot
  -f, --fullscreen         Take a screenshot of the entire screen

Judging from that, running 

xfce4-screenshooter -c -f

should make a screenshot of the whole screen an store it in the clipboard.

Instead, a window is opened with further questions.

Suggestion: somehow make it more consistent.

Rationale: I would like to assign an action 'make a screenshot and store into the clipboard' to a 'prntscrn' key on my keyboard.

Can this be done?
Comment 1 Andre Miranda editbugs 2018-07-06 04:24:09 CEST
Created attachment 7818 
patch

This misbehavior was introduced recently, since now it is possible to use the clipboard action along with others.

Before pushing the fix to master, I would like to hear from you if you are able to test the attached patch.

Good catch and thanks for reporting.
Comment 2 lockywolf 2018-07-07 15:39:32 CEST
Worked for me. Thanks for responding so quickly. I am amazed.

I bound this spell to the 'Print Screen' button in 'keyboard shortcuts', and it works. (Exactly like some other well known operating system does.)

Would it be worth suggesting to introduce such a keybinding to be used by default in XFCE?
(I think it would be friendly to fresh migrants from that OS.)
Comment 3 Git Bot editbugs 2018-07-08 19:02:23 CEST
Andre Miranda referenced this bugreport in commit 234a3db78561298a21581208852cbb29ff66cd80

Fix clipboard action handling (Bug #14513)

https://git.xfce.org/apps/xfce4-screenshooter/commit?id=234a3db78561298a21581208852cbb29ff66cd80
Comment 4 Andre Miranda editbugs 2018-07-08 19:14:01 CEST
Pushed to master, this fix will be available in xfce4-screenshooter 1.9.3.
With regards to the default key binding, I filed Bug 14524 requesting that.
Comment 5 Andre Miranda editbugs 2018-08-11 04:17:58 CEST
*** Bug 14565 has been marked as a duplicate of this bug. ***

Bug #14513

Reported by:
lockywolf
Reported on: 2018-07-03
Last modified on: 2018-08-11
Duplicates (1):
  • 14565 Specifying the --clipboard option still opens the save menu

People

Assignee:
Jérôme Guelfucci
CC List:
2 users

Version

Attachments

patch (1.26 KB, patch)
2018-07-06 04:24 CEST , Andre Miranda
no flags

Additional information