https://bugs.kde.org/show_bug.cgi?id=464706

            Bug ID: 464706
           Summary: Global shortcuts only work once
    Classification: Applications
           Product: Spectacle
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: General
          Assignee: m...@baloneygeek.com
          Reporter: k...@privat.broulik.de
                CC: k...@david-redondo.de
  Target Milestone: ---

The global shortcuts for taking screenshots with Spectacle (Print Screen and
its modifier derivates) only work once.

STEPS TO REPRODUCE
1. Press Print
2. Close Spectacle
3. Press Print again

OBSERVED RESULT
Nothing happens

EXPECTED RESULT
Spectacle opens again

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: git master as of 2023-01-22

ADDITIONAL INFORMATION
Spectacle uses actions defined in its desktop file for those shortcuts, however
since the QML rewrite it also calls  KGlobalAccel::self()->setGlobalShortcut in
its SpectacleCore.cpp.
This has KGlobalAccel track the shortcut and set it "inactive" when the app
quits because the action normally couldn't be invoked with the app gone.
It didn't surface until now where Spectacle actually quits properly again after
taking a screenshot.
The reason for calling KGlobalAccel isn't clear and might be superfluous, since
the actions are handled by the desktop file. If the shortcut is shown in the
UI, then I think something else needs to be done than call KGlobalAccel.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to