Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

352.1. spectacle-6.8.2

Screenshot and screen recording tool — regions, windows, annotations, OCR and video

6.8.2-1 · GPL-2.0-or-later AND LGPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND (GPL-2.0-only OR LGPL-2.0-only OR LicenseRef-KDE-Accepted-GPL) AND LGPL-2.1-or-later AND BSD-3-Clause AND CC0-1.0 AND GFDL-1.2-or-later · 12.4 SBU · 5.7 MiB, 32 files · 50_desktop, 29 of 92 · ports/core/graphics/spectacle

Homepage: https://apps.kde.org/spectacle/

Why it is in KDOS. The comment above it in script/phases/50_desktop/packages.txt:

Screenshots and screen recording, over KWin's screenshot and screen-cast interfaces.

Spectacle is Plasma’s screenshot and screen-recording tool: the whole desktop, one monitor, a window or a rectangular region, annotated in place with kquickimageeditor, with text recognition over tesseract, and video of a region, a screen or a window. Under KWin a still comes through KWin’s org.kde.KWin.ScreenShot2 D-Bus interface and a recording through the zkde_screencast_unstable_v1 protocol and a PipeWire stream, which kpipewire encodes to a file. It is the desktop’s capture tool: the Print key and its chords start it.

Depends on: cmake, ninja, extra-cmake-modules, pkgconf, qt6-qtbase, qt6-qtdeclarative, qt6-qtwayland, qt6-qtmultimedia, kcoreaddons, kwidgetsaddons, kdbusaddons, knotifications, kconfig, ki18n, kio, kwindowsystem, kglobalaccel, kxmlgui, kguiaddons, kirigami, kstatusnotifieritem, prison, kcrash, kdoctools, purpose, wayland, plasma-wayland-protocols, layer-shell-qt, kpipewire, kquickimageeditor, tesseract.

Required by (1): kde-gear-core.

Sources: spectacle-6.8.2.tar.xz (1.6 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/50_desktop/phase.env && kpkg install spectacle'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KF_SKIP_PO_PROCESSING=ON \
	-D WITH_X11=OFF \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Purpose=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
rm -rf "$PKG/usr/lib/systemd"

Programs: spectacle.

Directories: /usr/share/doc/HTML/en/spectacle, /usr/share/licenses/spectacle.

The install puts a systemd user unit, app-org.kde.spectacle.service, under /usr/lib/systemd; build.sh removes the directory, since KDOS has no systemd (see No systemd). D-Bus activation does not need it: both service files, org.kde.spectacle.service and org.kde.Spectacle.service, carry Exec=/usr/bin/spectacle --dbus beside their SystemdService= line, and a bus daemon without systemd activation runs the Exec= command.

The install links /usr/share/kglobalaccel/org.kde.spectacle.desktop to the application entry, and the global shortcut daemon reads the entry’s X-KDE-Shortcuts keys from it. KDOS’s defaults, kglobalshortcutsrc and spectaclerc under /usr/share/kdos/xdg, change part of upstream’s set. The keys a KDOS session starts with:

Key Action Upstream’s binding
Print Start Spectacle, which takes the whole screen (launchAction in spectaclerc) Same key; Spectacle’s own launch action
Shift+Print, Meta+Shift+Print, Meta+Shift+S A rectangular region Shift+Print took the whole desktop; Meta+Shift+S started Spectacle
Meta+Print The active window Same
Meta+Ctrl+Print The window under the pointer Same
(none) The whole-desktop shot as an action of its own (FullScreenScreenShot=none); Print’s launch action takes the same shot Shift+Print
Meta+Shift+R, Meta+R, Alt+Print Start or stop recording a region Alt+Print added by KDOS
Meta+Alt+R Start or stop recording a screen Same
Meta+Ctrl+R Start or stop recording a window Same

A shortcut changed in System Settings is written to the user’s own ~/.config/kglobalshortcutsrc and overrides these.

KWin answers ScreenShot2 only for a program whose desktop entry names that interface in X-KDE-DBUS-Restricted-Interfaces and whose Exec= resolves to the caller’s executable. The entry names /usr/bin/spectacle, so a Spectacle run from any other path is refused every capture.

Spectacle reads a QR code or barcode in a capture with prison’s PrisonScanner library, and the configure stops with “Prison built without required PrisonScanner component” when prison was built without it; the prison port builds it over qt6-qtmultimedia and zxing-cpp.

Text recognition needs tesseract’s pkg-config module at configure time, with no switch to leave it out. The language list offers the trained data installed under /usr/share/tessdata; tessdata-eng, which tesseract depends on, gives English.

KF_SKIP_PO_PROCESSING stops only ki18n_install(): kdoctools_install() still builds the translated manual pages under /usr/share/man/<lang>/ and the translated handbooks, and kpkg’s language rule removes both from the package.