gnome-screenshot ignores "--area" if called from shortcut

Asked by loe

By pressing "Print" a screenshot of the whole desktop gets taken. But I would prefer if I could always choose the area of the screenshot by hand. By calling "gnome-screenshot --area" from commandline you can select the area.

So I went into System -> Shortcuts (? have a German layout) and deactivated the shortcut "print" for taking a screenshot.
Now I added a new shortcut with the command: "gnome-screenshot --area" and assigned the "print" key to it. (Theoretically I am done at this point)

 But if I press the print key a screenshot of the whole screen gets taken. And there was NO area selection. If I change the command from "--area" to "--interactive", then by pressing the "print" key the property window pops up (if i select there the checkbox area-selection I can choose the area). Assigning "gnome-screenshot --area" to a different key/ or combination of keys has the same result - the area selection never shows up. (The interactive mode always works)

Do I miss something or did I found a bug? And can anyone tell me if there is a fix?

As a workaround I tried putting the command into a script and then calling the script per shortcut with the same result: the area selection never shows up, (the interactive mode does).

I am using
Ubuntu 9.10 with kernel 2.6.31-20-generic (without compiz or any desktop effects)

loe

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
MichaelTill (debianguru) said :
#1

Hi,

had the same problem. I solved it by entering "gnome-screenshot --area" in "ComputConfig Settings Manager" -> "Gnome Compatibility" -> "Commands" -> "Take a screenshot"

Hope that helps.

Best regards
Debianguru

Revision history for this message
pberndt (phillip-berndt) said :
#2

I guess the problem is that the Ctrl+Print keyevent get's passed on to gnome-screenshot which somehow interprets it as "cancel; take screenshot of the whole screen". Writing a script which first sleeps for 0.5 secs (sleep 0.5) and then calls gnome-screenshot -a fixed the problem for me.

Can you help with this problem?

Provide an answer of your own, or ask loe for more information if necessary.

To post a message you must log in.