Bug 390335 - Meta+Shift+Print does not trigger rectangular region screenshot
Summary: Meta+Shift+Print does not trigger rectangular region screenshot
Status: RESOLVED NOT A BUG
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 17.12.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-12 18:18 UTC by Simone Gaiarin
Modified: 2018-02-15 09:54 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 Simone Gaiarin 2018-02-12 18:18:54 UTC
I discovered just today the spectacle shortcuts, but unfortunately the one I would use the most for taking rectangular regions screenshots is not working.

Shift+PrntScrn and Meta+PrntScrn are working correctly.
Comment 1 null 2018-02-13 22:21:14 UTC
Hmh, works fine for me. Ideas:

- Check "kcmshell keys" → KDE Daemon → "Screenshot" (we should improve the dialog, BTW…).
- Make sure not to run into Bug 389694, i.e. "killall spectacle".
- Is taking a region screenshot working from the main dialog?
Comment 2 null 2018-02-13 22:46:37 UTC
Also, check your KF5 version (see Bug 385073).
Comment 3 Simone Gaiarin 2018-02-14 06:46:28 UTC
My kglobalaccel package version is 5.42, quite recent, and
Meta+Shift+[key] works for other things, like moving KWin windows around.

Tried to kill spectacle, nothing changed.

My shortcuts were configured like this:
PrintScreen: None
Start Screenshot Tool: Print
Take Active Window Screenshot: Meta+Print
Take Full Screen Screenshot: Shift+Print

I don't see an entry for Rectangular region.

I now set PrintScreen:Print, and this seems to do nothing. (There is not picture copied in the clipboard) and spectacle is not triggered.


On a side note: It's very not intuitive to find these shortcuts in the category "KDE Daemon". I agree that we should improve the dialog, and think of a better name for that category. I guess that a basic user is not familiar with a concept of daemon, same for ksmserver.
Comment 4 null 2018-02-14 16:54:14 UTC
> PrintScreen: None
That's odd, I don't have that. Instead it shows "Take Rectangular Region Screenshot: Meta+Shift+Print" for me.

Also, I discovered a second place you can configure it: "kcmshell khotkeys" – Maybe something gone wrong there (e.g. deleted by mistake), or a distro-specific problem? It works for me on Tumbleweed and Neon. Try with a new user account?

> I agree that we should improve the dialog
From Spectacle's point of view, there are these bugs:

  Bug 362061 
  Bug 388592
  Bug 389778

For "kcmshell keys", I could imagine transforming it to look like the application-specific "configure shortcuts" dialog, i.e. a combined tree view allowing to search in every component at once, instead of two separate lists. Wanna work on it ;) ?
Comment 5 Nate Graham 2018-02-14 16:56:20 UTC
And don't forget Bug 388592!
Comment 6 Nate Graham 2018-02-14 16:56:42 UTC
Oops, ignore that comment, sorry.
Comment 7 Simone Gaiarin 2018-02-14 18:08:10 UTC
With a new user the entry "Rectangular region" is present in the shortcuts and it works.

I have reinstalled kglobalaccel

I have removed .config/kglobalshortcutsrc, logout, login to let KDE recreate it.

Meta+Shift+Key is assigned to PrintScreen (as "Custom")

Tried to copy the entry from .config/kglobalshortcutsrc of the new user to mine, but apparently is recreated at login (?) .config/kglobalshortcutsrc

Do you know where is the file containing the default shortcuts if any?

Can the fault instead be of an old config file of spectacle?
Comment 8 null 2018-02-14 18:20:05 UTC
Sorry, I'm just as clueless. What I would try in those cases is to play around in the config dialogs and look at what files were changed (e.g. "find" all files changed in the last minute). Or perhaps do a directory/file diff with KDiff3 between user accounts. For the global config files my trick is to use "rpm -qf file" to know where it is coming from. Often they have the same name as in ~/.

Your best bet might be asking an expert on IRC.

Another idea: Press the "Defaults" button everywhere (but it might be broken there…).

Anyway, we can continue debugging here, but I'll change the status as it is somehow resolved. Perhaps open new bugs regarding concrete improvements.
Comment 9 Nate Graham 2018-02-14 18:33:14 UTC
This works for me too, FWIW.
Comment 10 Simone Gaiarin 2018-02-15 09:54:13 UTC
For reference.

I've deleted 
~/.config/kglobalshortcutsrc 
~/.config/khotkeysrc

and in KCM Global shortcuts set everything to default.

And this somehow solved the problem.

Careful that all the custom shortcuts are gone with this method.