306.20. koko-26.08.2
Photo and video gallery — browse by folder, place and date, with slideshows and basic image editing
26.08.2-1 · LGPL-2.0-or-later AND LGPL-2.1-or-later AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND GPL-2.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND CC0-1.0 · 5.4 SBU · 34.5 MiB, 22 files · 44_apps, 240 of 422 · ports/core/graphics/koko
Homepage: https://apps.kde.org/koko/
Koko, named Photos in the menu, is KDE’s Kirigami gallery: it indexes the pictures and videos under the Pictures folder, groups them by folder, by date and by the place they were taken, plays slideshows and videos, and crops, rotates and resizes images through kquickimageeditor. Places come from the photos’ GPS tags, read with exiv2, matched offline against the GeoNames city and region tables that ship in the tarball and are installed under /usr/share/koko.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtpositioning, qt6-qtsvg, qt6-qtmultimedia, ki18n, kdeclarative, kconfig, kconfigwidgets, kio, kcoreaddons, kcrash, knotifications, kfilemetadata, kdbusaddons, kirigami, kwindowsystem, purpose, exiv2, kquickimageeditor, kirigami-addons, kirigami-app-components, kimageformats.
Required by (1): kde-gear-graphics.
Sources: koko-26.08.2.tar.xz (7.7 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install koko'
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 CMAKE_REQUIRE_FIND_PACKAGE_Qt6PrintSupport=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_XCB=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6PrintSupport=ON— Printing a picture. Upstream asks for Qt Print Support as an optional component and leaves the print action out without it; the module is part of qt6-qtbase, and required, its absence stops the configure.-D CMAKE_DISABLE_FIND_PACKAGE_XCB=ON— No XCB code. It reads the display’s colour profile only when Koko runs on the X11 platform plugin, which on KDOS it does not; refused, headers that happen to be present cannot compile it in.-D KF_SKIP_PO_PROCESSING=ON— Skips building the interface translations, which the package-wide English-only rule would remove anyway (see Size and language policy).
Programs: koko.
Directories: /usr/share/koko, /usr/share/licenses/koko.
Video playback is the QtMultimedia QML module of qt6-qtmultimedia, and the shortcut settings come from kirigami-app-components; the configure checks the latter and not the former. Formats beyond Qt’s own (AVIF, HEIF, PSD, RAW previews and the rest) are decoded by the Qt image plugins of kimageformats, loaded at run time.
The entry claims most image and video types. Which program opens a file of a type several entries claim is decided by the desktop’s mimeapps.list, not by the order the entries were installed. The unit tests are compiled whatever BUILD_TESTING says and are not installed.