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

312.1. kdialog-26.08.2

Script dialogs — message boxes, prompts, file pickers and progress bars from the shell

26.08.2-1 · GPL-2.0-or-later · 3.0 SBU · 294.9 KiB, 7 files · 44_apps, 422 of 422 · ports/core/xdg/kdialog

Homepage: https://invent.kde.org/utilities/kdialog

KDialog puts KDE dialogs in shell scripts: message and yes/no boxes, text, password and combo-box prompts, check and radio lists, file and folder pickers, a colour picker, a calendar, passive popups and a progress bar that the script drives over D-Bus. It prints what the person chose on standard output and answers with its exit status. Browsers and scripts that run under KDE call it for their file pickers.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, ktextwidgets, knotifications, kguiaddons, kiconthemes, kwindowsystem, kio, kdbusaddons, libX11.

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

Sources: kdialog-26.08.2.tar.xz (146.8 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 kdialog'

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_X11=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Programs: kdialog, kdialog_progress_helper.

Directories: /usr/share/licenses/kdialog.

--attach makes a dialog the child of another window through KWindowSystem. Under Wayland the value is an exported xdg-foreign handle, not an X window id, so only a caller that exports its window can attach to it.

The desktop entry is NoDisplay=true upstream: KDialog is started by scripts, never from the menu.