289.1. qmlkonsole-26.08.2
Touch terminal emulator — a Kirigami terminal with a toolbar of special keys
26.08.2-2 · GPL-2.0-or-later AND LGPL-2.0-or-later AND CC0-1.0 · 4.3 SBU · 1021.6 KiB, 9 files · 44_apps, 368 of 422 · ports/core/shells/qmlkonsole
Homepage: https://apps.kde.org/qmlkonsole/
QMLKonsole is the Plasma Mobile terminal: a Kirigami window around a terminal widget, with a toolbar of the keys a phone keyboard lacks (Tab, Ctrl, Esc, the arrows) and saved commands. The widget is a copy of qmltermwidget in lib/, which carries its own copy of Konsole’s emulation code and runs the shell through kpty. On KDOS the terminal is konsole; this port is the touch-screen alternative.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg, qt6-qt5compat, kirigami, kirigami-addons, ki18n, kconfig, kcoreaddons, kwindowsystem, kpty, desktop-file-utils.
Required by (1): kde-gear-utilities.
Sources: qmlkonsole-26.08.2.tar.xz (204.2 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install qmlkonsole'
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 \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
desktop-file-edit --set-name="Terminal (QMLKonsole)" "$PKG/usr/share/applications/org.kde.qmlkonsole.desktop"
install -d "$PKG/usr/share/kdos/xdg"
cat > "$PKG/usr/share/kdos/xdg/qmlkonsolerc" <<'EOF'
[General]
colorScheme=KDOS-Bone
EOF
chmod 644 "$PKG/usr/share/kdos/xdg/qmlkonsolerc"
--set-name— Rename the entryTerminal (QMLKonsole)withdesktop-file-editfrom desktop-file-utils, on the installed copy. Upstream calls it plainTerminal, and the plain name of a role belongs to the program that fills it; an alternative is qualified (see Desktop entries belong to the port).GenericName=Terminalstays, so a search for “terminal” still lists it.-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: qmlkonsole.
Directories: /usr/share/licenses/qmlkonsole.
desktop-file-edit rewrites only Name=; the translated Name[…]= lines keep upstream’s wording, which an English-only system never shows. The entry carries X-KDE-AuthorizeAction=shell_access, so a kiosk profile that denies shell access hides it.
build.sh writes /usr/share/kdos/xdg/qmlkonsolerc, a KDOS default that sets colorScheme to KDOS-Bone. The widget looks a scheme up by file name in its own resources, then ~/.local/share/konsole and /usr/share/konsole; upstream’s default, Breeze, is built into Konsole and is in none of them, so without the file the widget falls back to its black-on-white scheme, on which the shell prompt kdos theme colours for a dark accent is unreadable. kdos theme writes the accent’s scheme into the person’s qmlkonsolerc while the value in force names a KDOS- scheme, so the terminal follows the accent from its next start.
qt6-qt5compat is a build requirement (Core5Compat): the bundled widget still uses Qt 5 compatibility classes. KAboutData gives the window the app_id org.kde.qmlkonsole, the name of upstream’s entry.