354.26. plasma-welcome-6.8.2
Plasma Welcome Center — the first-login tour, the post-update page and distribution pages
The build-state snapshot was taken from 6.8.2-3; this recipe is 6.8.2-4, so the size, time and contents below describe the earlier build.
| Version | 6.8.2, release 4 |
| Shelf | kde — KDE Plasma and Gear platform pieces outside Frameworks that have no other domain: KIO workers, thumbnailers, Plasma integration, KDE Wayland glue |
| Phase | 50_desktop (Desktop), 49 of 92 in build order |
| Licence | (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 CC0-1.0 AND CC-BY-SA-4.0 |
| Homepage | https://invent.kde.org/plasma/plasma-welcome |
| Build time | 0.3 SBU |
| Installed size | 4.4 MiB in 22 files |
| Recipe | ports/core/kde/plasma-welcome/kpkgbuild |
About
Plasma Welcome Center is the tour a person sees at their first Plasma login: what the desktop is, how to reach settings and software, and the distribution’s own pages. A module of the KDE daemon, kded_plasma_welcome, opens it when LastSeenVersion in plasma-welcomerc is empty, opens its post-update page after a significant Plasma upgrade unless ShowUpdatePage=false, and opens it at every login when LiveEnvironment=true, the live-medium form, whose LiveInstaller key names the installer’s desktop entry.
Why it is in KDOS
The comment above it in script/phases/50_desktop/packages.txt:
The first-login tour and the post-update page.
Sources
plasma-welcome-6.8.2.tar.xz(999.4 KiB)
sha25616ced545dca365a03e42867ae33634d8c9bb0fe0e3fa9ba12eb3600774873d9c
upstream: https://download.kde.org/stable/plasma/6.8.2/plasma-welcome-6.8.2.tar.xz
archive copy: sources-3/kde--plasma-welcome-6.8.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg, kirigami, kconfig, kcoreaddons, kconfigwidgets, kcrash, kdbusaddons, ki18n, kio, knewstuff, kservice, kwindowsystem, kcmutils, ksvg, kjobwidgets, kglobalaccel, libplasma, kirigami-addons, qt6-qt5compat, plasma5support, milou, plasma-nm, kded.
Required by (2): kde-plasma, kdos-welcome.
Patches
build.sh applies these; kpkg applies nothing by itself.
description-focus.patch— Page: frame the description label while it has keyboard focusThe description label takes focus so a screen reader reads it, and it is the first Tab stop of every page, but it draws no focus indicator: the first Tab seems to do nothing. Draw a frame in the focus colour round it while a Tab or Backtab has put the focus there.
early-distro-pages.patch— show distribution pages numbered 00-09 straight after the welcome page, before Plasma's ownkdos-powerful-cards.patch— Powerful When Needed: list the Meta chords the machine binds; drop the Activities cardThe Keyboard Shortcuts card builds each of its rows from globalShortcutTexts() for the action the row teaches, and leaves out a row whose action has no chord, so it names only chords this machine binds and follows a rebound action to its new chord. The Activities card is removed: KDOS ships no activities interface and binds no activity-switcher chord.
mock-wallpaper.patch— Mocks: draw the global theme's wallpaper instead of NextThe mock desktops of Simple by Default, Powerful When Needed and the update page draw /usr/share/wallpapers/Next whatever the session uses, so a distribution whose global theme names its own wallpaper shows a tour of a desktop it does not ship. App gains defaultWallpaper: the image the global theme in use names in its defaults ([Wallpaper] Image), its images_dark variant under a dark colour scheme as the image wallpaper chooses, the largest landscape size; Next when the theme names none that is installed.
release-notes-pages.patch— Pages asked for by a second instance open in the running window; a one-page run has one exitWelcome Center is single-instance: a second start hands its arguments to the running one, which raises its window. The pages a second start names with --pages are shown in that window as layers over the pages it has open, so Back returns to them and an entry that opens one page works while the tour is open. A window that is itself a run of exactly those pages is only raised. The update footer, which has only OK, gains a Back button while a layer is open, so the Plasma update page under the layers stays reachable.
A --pages run of one page with no layer open shows neither Skip nor the page indicator: Finish is its one exit.
shortcut-texts.patch— Utils: add globalShortcutTexts(), every chord bound to a global actionglobalShortcutText() returns the first multi-key sequence of an action, in the order kglobalaccel hands them back, which is not stable between sessions; a page that wants to name one particular chord of several cannot choose it. globalShortcutTexts() returns all of them, as native text.
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/50_desktop/phase.env && kpkg install plasma-welcome'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/kde/plasma-welcome.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/kde/plasma-welcome
echo '16ced545dca365a03e42867ae33634d8c9bb0fe0e3fa9ba12eb3600774873d9c plasma-welcome-6.8.2.tar.xz' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/plasma-welcome
SRC=$SRC_ROOT/plasma-welcome-6.8.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf plasma-welcome-6.8.2.tar.xz -C "$SRC" --strip-components=1
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the recipe’s helpers group and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
patch -p1 -i "$PORT_SRC/early-distro-pages.patch"
patch -p1 -i "$PORT_SRC/shortcut-texts.patch"
patch -p1 -i "$PORT_SRC/description-focus.patch"
patch -p1 -i "$PORT_SRC/kdos-powerful-cards.patch"
patch -p1 -i "$PORT_SRC/release-notes-pages.patch"
patch -p1 -i "$PORT_SRC/mock-wallpaper.patch"
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_DISABLE_FIND_PACKAGE_KF6UserFeedback=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
The switches, and why each is set:
-D CMAKE_DISABLE_FIND_PACKAGE_KF6UserFeedback=ON— No KUserFeedback. The Welcome Center looks for it as a run-time dependency of its “Share Anonymous Usage Information” page, which loads thekcm_feedbacksettings module and is shown only when that module exists. KDOS sends no telemetry, KUserFeedback is not a port, and refusing the search means a stray copy in the build root cannot be picked up.-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).
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/plasma-welcome, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf plasma-welcome-6.8.2-4.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/plasma-welcome, and runs the triggers its paths call for.
Contents
Installed programs: plasma-welcome.
Installed libraries: libplasma-welcome-publicplugin.a.
Installed directories: /usr/lib/qt6/qml/org/kde/plasma/welcome, /usr/share/licenses/plasma-welcome.
Notes
Distribution pages are QML files in /usr/share/plasma/plasma-welcome/extra-pages/, shown in file-name order, and the first page’s extra text, icon, icon caption and icon link are the Name, Icon, Comment and URL keys of /usr/share/plasma/plasma-welcome/intro-customization.desktop. Both paths are compiled in from the DISTRO_CUSTOM_PAGE_FOLDER and DISTRO_CUSTOM_INTRO_FILE cache variables, whose defaults are the paths KDOS’s own pages are installed to, so the recipe leaves them as they are.
early-distro-pages.patch shows the distribution pages named 00- to 09- straight after the welcome page, before Plasma’s own pages, and leaves every other distribution page where upstream puts it, before the last page. KDOS’s Accessibility page is 00-Accessibility.qml (from kdos-welcome), so larger text, contrast, reduced motion and the screen reader are offered before anything else is asked; upstream shows distribution pages only after its own five. The patch documents the rule in the README’s distribution-page section.
shortcut-texts.patch adds Utils.globalShortcutTexts(component, action), which returns every chord bound to a global action, where upstream’s globalShortcutText returns only the first with a modifier. kglobalaccel hands an action’s chords back in no stable order, so “the first” names a different chord from one session to the next; the KDOS Keys page reads them all and shows the one it teaches while that one is bound. It is to be offered upstream.
description-focus.patch draws a frame in the theme’s focus colour round a page’s description while a Tab or Backtab has put the focus there. Upstream makes the description focusable so a screen reader reads it, and it is the first Tab stop of every page, Plasma’s and the distribution’s alike, but it draws no focus: without the frame the first Tab seems to do nothing. A click, which also focuses it, draws no frame: the label decides when it gains focus, from whether a press of any button is held on it at that moment, and keeps no mark from a press that gave no focus, so the next Tab is framed whichever button was pressed before it. Qt 6.12 focuses the label on a right or middle press as well as a left one. It is to be offered upstream.
kdos-powerful-cards.patch changes two things on the “Powerful When Needed” page. Its Keyboard Shortcuts card lists the Meta chords from globalShortcutTexts for each action it teaches (the launcher, quick tiling, the task manager’s entries, Spectacle’s region recording, the lock screen, the screen reader, panel focus, System Monitor, the emoji selector and Show Desktop), and leaves out a row whose action has no chord; upstream’s list is fixed text, and names Meta+Shift+S for the screen reader, which on KDOS is a region screenshot, while the screen reader is Meta+Alt+S. A row keeps only the chords that start with Meta, the key the card is about, so Print and Alt+F1 are left out while the launcher’s row keeps the Meta key alone; the chords are sorted, shortest first, because kglobalaccel returns them in no stable order and the row would otherwise change between sessions. The task manager row is the run of entries 1 to 9 (Meta+1 to Meta+9): entry 10 is Meta+0, which would end the run on a key that reads as lower than its start. The page also loses its Activities card, which teaches the activity switcher’s chord: KDOS ships no activities interface and leaves that action unbound, so the card would name an unassigned shortcut. The chord-driven list is to be offered upstream; the card’s removal is KDOS’s alone.
release-notes-pages.patch makes two changes for an entry that opens one page, as KDOS’s Release Notes runs plasma-welcome --pages 90-WhatsNew.qml. Welcome Center is a unique D-Bus application: a second start hands its arguments to the running one and exits, and upstream’s running window only raises itself and drops them, so with the tour open the entry would bring the tour forward and show no notes. With the patch the running window reads the second start’s --pages, names each page as the first start does, and shows them as layers over its own pages, so Back returns to where it was; asking again replaces the layers, and a window that is itself a run of exactly those pages is only raised. The post-update page’s footer has only OK, which closes the window, so the patch gives it a Back button while a layer is open; without one, notes opened over the Plasma update page would leave no way back to it. And a run of one page with no layer open hides Skip and the page indicator, so Finish is its one exit, where upstream offers Skip beside Finish and a single dot. It is to be offered upstream.
mock-wallpaper.patch draws the mock desktops of Simple by Default, Powerful When Needed and the post-update page on the wallpaper of the global theme in use, where upstream hard-codes Plasma’s Next, so the KDOS tour would show a desktop KDOS does not have. A new App.defaultWallpaper reads LookAndFeelPackage from kdeglobals, that package’s defaults ([Wallpaper] Image, which each KDOS accent’s global theme sets to its own KDOS-<Accent> package), and picks the package’s largest landscape image, from images_dark under a dark colour scheme as Plasma’s image wallpaper does; a theme that names no installed wallpaper keeps Next. It is to be offered upstream.
The post-update page offers to download a preview of the Plasma release announcement from kde.org. It does so only when the person asks, because AutomaticUpdatePreview defaults to false; every other link on the pages opens in the web browser.
kded is in depends for run time: the module that decides when to open the Welcome Center is a plugin that kded6 loads at login. So are the ports whose QML modules the pages import and the build does not check for: the cards and the mock desktop draw with qt6-qt5compat’s graphical effects, the mock clock reads the time through plasma5support, the mock KRunner draws its results with milou, and the Network page lists networks through plasma-nm. Without plasma-nm the Network page shows a notice that Plasma’s networking support is not installed; without one of the others a page fails to load.