This chapter lists every configuration file on a KDOS system that a person may edit, every key in each one, its default, and when a change takes effect. It also lists the defaults KDOS gives Plasma and the other KDE programs, the files the image ships for third-party programs, the environment a login sets, and the generated files that must not be edited. It is for anyone who wants to change how the desktop looks or behaves and for whoever administers the machine. It is a reference: the chapters on the session and administration explain the same files in the context of the jobs they belong to.
There is no settings database. KDOS’s own files are read directly by the program that acts on
them, so the file is the setting. Plasma and the KDE applications keep their settings in KConfig
files, plain INI files under ~/.config, and System Settings writes those same files; editing them
by hand, or with kwriteconfig6, gives the same result.
How to use this page. Find the file in the contents below, or search for the key. Each section says who reads the file, what every key does, and when an edit starts to count. Read Where configuration lives and When a change takes effect first: every table afterwards uses their terms. For the paths, sockets and bus names these files mention, see Filesystem and IPC. Terms such as accent, desk, box and pack are defined in the Glossary.
| Tier | Path | Belongs to |
|---|---|---|
| Machine | /etc/kdos/, /etc/, /etc/xdg/ |
The administrator |
| Distribution defaults | /usr/share/kdos/xdg/, with the overlays /usr/share/kdos/xdg-vm/ and /usr/share/kdos/xdg-live/ |
The image. An update replaces them, so change a default by writing the same key in /etc/xdg or in your own file |
| Per user | ~/.config/kdos/, ~/.config/kdosrc, and the KConfig files of Plasma and the KDE programs (~/.config/kwinrc, ~/.config/kdeglobals and the rest) |
You |
| Per user, generated | The terminal programs’ colour files listed under Generated files you should not edit | kdos theme. Edits are overwritten |
| State, not configuration | ~/.local/state/kdos/, ~/.cache/kdos/, /var/lib/kdos/ |
The programs that write them |
A new account is populated from /etc/skel. Editing a file there changes the defaults for accounts
created afterwards and leaves existing accounts alone.
How a KDE setting is found. A KDE program reads a KConfig file by its name from every
directory on XDG_CONFIG_HOME and XDG_CONFIG_DIRS and merges them key by key, the first
directory winning. A KDOS session’s order is:
~/.config — what you, System Settings and kdos write/usr/share/kdos/xdg-live — on the live medium only/usr/share/kdos/xdg-vm — in a virtual machine only/etc/xdg — the administrator’s/usr/share/kdos/xdg — KDOS’s defaultsPlasma also puts ~/.config/kdedefaults, which it writes when a global theme is applied, in front
of the system directories. /etc/profile.d/10-wayland.sh appends /usr/share/kdos/xdg to every
login, and kdos_session_xdg_dirs in /usr/local/lib/kdos/session-common.sh adds /etc/xdg when
missing and the two overlays where they apply, for the session SDDM starts. A key marked [$i] in a
system file is locked: nothing later in the order can change it.
Where a program honours $XDG_CONFIG_HOME, ~/.config below means that directory. Two files are
always looked up under $HOME/.config whatever that variable says: box profiles and kdos/a11y.
Where a key table has an Applies column, it uses one of these words. The other tables say in prose when a change counts.
| Word | Meaning |
|---|---|
| immediate | At once: the program watches the file, or the command that writes it tells the program |
| next start | The next time that program starts |
| next login | Read once per session |
| create time | When a box is created. A running box keeps what it was created with |
| boot | Read once during startup |
| next launch | The next time an application in that box is launched |
| next collection | The next kdos-box gc pass |
| — | Recorded only; nothing acts on the key |
A KDE program reads its KConfig files when it starts, and most watch them while they run. KWin
and Plasma pick up a hand edit of their own files on a reconfigure: qdbus6 org.kde.KWin /KWin
reconfigure for KWin, and logging out and in for the rest. A change made through System Settings
or through kdos is announced to the running programs as it is made.
Most KDOS configuration files are key = value, one per line; the few that are not (favorites,
timers.d, and the files whose presence alone is the setting) show their format in their own
section. A line whose first non-blank character is # is a comment. The files are parsed, never
sourced: there is no shell, no command substitution and no variable expansion. A # after a value
is part of the value, not a comment, except in backup.conf, where a # anywhere on a line starts
a comment, so a path there cannot contain #.
Where a key takes yes or no, yes, true, on and 1 mean yes, and no, false, off and 0
mean no, in lower case. Box profiles and sandbox profiles report a key they do not recognise, by
name, on standard error.
KDOS files that belong to a KDE program (kdosrc, kdos/phosphor, the files under
/usr/share/kdos/xdg) are KConfig files: [Group] headers, Key=value lines with no spaces round
the =, and [Group][Subgroup] for nested groups.
~/.config/kdos/accentOne word, the accent in force: phosphor, amber, ice, bone, norton, borland, perfect
or paper. kdos theme <accent> writes it; kdos theme with no argument prints it; and the
kded-kdos module writes it through kdos theme --from-plasma when you pick a KDOS global theme in
System Settings. The image’s /etc/skel carries it with the default accent, bone; the
installer’s Theme step re-seeds /etc/skel and the
new account’s home with the accent chosen at installation (kdos theme --account), so every
account made later starts in it. A home without it means bone. An account’s first login, which
kded-kdos knows by the absence of $XDG_STATE_HOME/kdos/accent-synced (written at that login),
writes it through kdos theme --from-plasma --account, which brings only that account into step
and leaves /etc/kdos/accent and the boot menu, splash and login screen alone.
Do not edit it by hand: the word is what kdos theme compares against when it decides which files
still name a KDOS default, and an accent changed here alone leaves Plasma, the boot menu and the
terminal programs in the old one. Run kdos theme <accent> instead. See
kdos theme and Theming.
~/.config/kdos/phosphorPhosphor mode’s own state, and the record of what switching it on changed, so that switching it off
can put everything back. kdos phosphor writes it; it is a KConfig file with up to four groups:
| Group | Holds |
|---|---|
[Settings] |
Options that outlast the mode, such as Terminus: kdos phosphor terminus on\|off records it whether the mode is on or off |
[State] |
On=true while the mode is on, and PreviousAccent, the accent it replaced |
[Saved] |
The value each key the mode changed had in your own file before it changed it |
[Unset] |
The name of each key the mode set that your own file did not have |
kdos phosphor off writes every [Saved] value back, removes every [Unset] key, and clears
[State], so switching the mode off returns your files to what they were, key for key. The file
itself stays, holding [Settings].
The keys the mode changes are KWin’s: [Plugins] kdos_crtEnabled, kdos_unfoldEnabled,
kdos_loginEnabled and kdos_quitEnabled (with loginEnabled and sessionquitEnabled off, so
the KDOS motion replaces KWin’s own), and the effect’s settings under [Effect-kdos_crt] in
kwinrc; the accent; and, with the Terminus option, the fixed-width font in kdeglobals and the
Konsole profile. Do not edit the file while the mode is on: a wrong [Saved] value is what off
would write back. See kdos phosphor.
~/.config/kdosrcKDOS’s own KConfig file, for the settings that belong to the desktop rather than to one program.
| Group | Key | Means |
|---|---|---|
[Desk] |
Layout |
The desk in force: kdos, dock or tiling. kdos desk <name> and the Welcome Center’s desk page write it |
[Desk] |
LaidOut |
When a desk was last laid out, in seconds since 1970, written by the desk’s layout script |
[Desk] |
LaidOutPanels |
A SHA-256 fingerprint of the panels as the desk laid them out: each panel’s place and alignment, its widgets in order, Start’s icon and label, the task manager’s pinned launchers and each meter’s face. kdos desk status compares it with the panels as they are now to tell whether you have rearranged them since. Written by kdos desk after a layout, or by the first kdos desk status after the first login’s. A desk whose Start has no icon, whose task manager has no launchers or whose meter has no face is not recorded, and status reports it as arranged by you |
/usr/share/kdos/xdg/kdosrc does not exist; a system default would go in /etc/xdg/kdosrc. Before
kdos desk replaces the panels it copies them to ~/.config/kdos/desk-undo/ (which kdos desk
undo restores) and to a dated directory under ~/.local/share/kdos/desk-backup/, which nothing
ever removes. See kdos desk.
~/.config/kdos/favoritesThe boxes started ahead of time at login, and the two-letter codes of the KDOS KRunner runner. One
desktop-entry identifier per line — the entry’s file name under /usr/share/applications or
~/.local/share/applications, without .desktop — or a box’s name. Blank lines and lines starting
with # are skipped. It ships with four rows:
org.kde.konsole code=TE
org.kde.dolphin code=FM
firefox-esr code=FF
org.kde.kate
Warm-up. At every login, before Plasma starts, kdos-appbox warmup starts the box behind each
line, with its bus proxy, so the first launch of the session finds it running rather than paying
for a cold start. A boxed application’s launcher id (app.<id>, or app.<id>.<launcher> for a
pack with several) names its box, and so does a box’s name; a host application’s id names no box
and is skipped. At most eight boxes are started, in the order listed, and a box that stays idle
past its profile’s autostop is stopped again by kdos-box gc.
Two-letter codes. A line may carry code=XX, two letters or digits. Typing those two letters
alone in KRunner offers that entry first, through the KDOS runner. The runner reads your file, or,
when you have none, the first kdos/favorites along XDG_CONFIG_DIRS; it takes at most 64 lines,
and a line whose application is not installed is skipped silently.
Every reader takes the first word of a line as the identifier and ignores anything after it but a
code= word. The panel’s pinned launchers are Plasma’s own (right-click a task, then Pin to Task
Manager) and are not read from here. The desks pin the same applications this file ships with, so
a fresh account whose pinned application is boxed starts that box warm.
/etc/kdos/menu.conf, merged under ~/.config/kdos/menu.confA route is a stable name for a place in the system, such as setup.network, that a script, a
document or another program can refer to. kdos menu summon setup.network opens the network
settings, and keeps working when a shortcut is rebound or a settings page moves. Typing a route’s
name in KRunner offers it through the KDOS runner.
One route = command per line:
setup.network = systemsettings kcm_networkmanagement
style.font = systemsettings kcm_fonts
toggle.night = kdos toggle night-light
The name is verb.noun, and the verb describes what you are doing rather than which program does
it: someone looking for Wi-Fi is setting something up, whichever page owns it. The system file
ships 35 routes under eight verbs: setup (10), system (9), style (4), capture (4),
toggle (3), learn (2), share (2) and about (1):
| Route | Runs |
|---|---|
setup.network |
systemsettings kcm_networkmanagement |
setup.bluetooth |
systemsettings kcm_bluetooth |
setup.sound |
systemsettings kcm_pulseaudio |
setup.displays |
systemsettings kcm_kscreen |
setup.devices |
kinfocenter |
setup.printers |
systemsettings kcm_printer_manager |
setup.users |
systemsettings kcm_users |
setup.time |
systemsettings kcm_clock |
setup.tui |
kdos app tui |
setup.applications |
plasma-discover |
style.theme |
systemsettings kcm_kdos_look |
style.font |
systemsettings kcm_fonts |
style.background |
systemsettings kcm_wallpaper |
style.desktop |
systemsettings kcm_lookandfeel |
system.settings |
systemsettings |
system.monitor |
plasma-systemmonitor |
system.power |
konsole --hold -e kdos-energy |
system.disks |
partitionmanager |
system.burn |
isoimagewriter |
system.connect |
kdeconnect-app |
system.boxes |
systemsettings kcm_kdos_boxes |
system.slots |
systemsettings kcm_kdos_system |
system.notifications |
systemsettings kcm_notifications |
learn.keys |
systemsettings kcm_keys |
learn.docs |
kdos-doc |
capture.region |
kdos-shot region |
capture.screen |
kdos-shot screen |
capture.record |
spectacle |
capture.qr |
kdos-shot qr |
share.file |
kdos-share |
share.clipboard |
kdos-share --clipboard |
toggle.night |
kdos toggle night-light |
toggle.quiet |
kdos toggle dnd |
toggle.awake |
kdos toggle stay-awake |
about.system |
kinfocenter |
The command is split on spaces and run without a shell. There is no quoting, so a route cannot become a way to run arbitrary shell code from a file you own.
The system file is read first and yours second. A route named in both takes your value; a route
only in yours is added. Routes cannot be deleted, so a name a script depends on keeps resolving. A
key beginning @ is skipped.
kdos toggle setskdos toggle keeps no state of its own: each switch is the setting the Plasma control for it
writes, so the applet shows what kdos toggle set, and a click there undoes it.
| Toggle | Where the state is |
|---|---|
stay-awake |
An inhibition of sleep and of the screen locker, held by a kdos process for as long as the switch is on; its pid is in $XDG_RUNTIME_DIR/kdos/stay-awake.pid, and the battery applet lists it as blocking |
night-light |
~/.config/kwinrc, [NightColor] Active, which KWin watches, with Mode=Constant written on the way on so it warms at once and all day; Active=false to switch it off |
dnd |
~/.config/plasmanotifyrc, [DoNotDisturb] Until, set far ahead; deleted to switch it off |
reduced-motion |
~/.config/kdeglobals, [KDE] AnimationDurationFactor=0; deleted to switch it off, so the shipped factor applies again |
kdos toggle lists them, kdos toggle <name> flips one, and kdos toggle <name> on|off sets it.
The routes toggle.night, toggle.quiet and toggle.awake do the same. See
kdos toggle.
~/.config/kdos/backup.confWhat kdos backup run copies with restic, and where to. include and
exclude may repeat, up to eight of each; any other key repeated keeps its last value. The paths
become separate arguments, so a directory with a space in its name stays one path. An exclude is
a restic pattern and is passed as written: *.iso excludes every ISO image.
| Key | Default | Means |
|---|---|---|
repo |
— | The restic repository |
password-file |
~/.config/kdos/backup.pass |
The file holding the repository’s password |
include |
— | A directory to back up. Repeatable, eight at most |
exclude |
— | A pattern to leave out. Repeatable, eight at most |
The file ships with every line commented out, because the first run over a home directory can take
hours and should be a choice. Every snapshot it makes is tagged kdos.
To set it up:
restic -r <repo> init. It asks for a password twice.~/.config/kdos/backup.pass and make it mode 0600
(chmod 600 ~/.config/kdos/backup.pass). kdos backup run refuses to run while the file
grants its group or other users any access at all.repo and the include/exclude lines you want.kdos backup run, or uncomment the nightly line described in the next section.Kup. The Backups page of System Settings is Kup, and it may use the same repository. Its plans
are in ~/.config/kuprc; a plan with [Plan/N] Backup type=2 is a restic plan, with
Restic use password file, Restic password file and Restic forget beside it. Kup’s own pruning
forgets only the snapshots it tagged kup, so neither ever removes the other’s.
/etc/kdos/timers.d/ and ~/.config/kdos/timers.d/Periodic jobs. Each *.timer file holds one job per line:
NAME TIMESPEC... -- COMMAND...
TIMESPEC is the options of snooze, unchanged:
-H 9 -M 0 for nine in the morning, -d /2 for every second day. snooze(1) is the full
reference. -- marks where the timespec ends and the command begins.
The command is an argument vector: no pipe, no redirection, no &&. That is what lets the file be
parsed rather than run as a script. It also means an argument cannot contain a space: the line is
split into words and never unquoted, so -- kdos notify "Good morning" reaches the command as
"Good and morning". A program that needs a sentence reads it from a file; kdos remind writes
its message as its timer file’s first comment line for this reason.
Missed runs. -s SLACK lets a job run late: a machine asleep at the slot runs the job once when
it wakes, if that is within the slack. It does not cover a machine that was switched off, because a
snooze started at boot looks for the next slot from that moment. -t FILE makes it look from that
file’s modification time instead, and the slack then covers the gap.
There are three tables, and they differ in when a job can fire:
| Table | Started by | Fires |
|---|---|---|
/etc/kdos/timers.d/ |
The system supervisor, at boot (/etc/init.d/18_timers.sh), as root |
Every occurrence, whether or not anybody is logged in |
/etc/kdos/user-services/timers.d/ |
The timers user service, for every user |
From a user’s first login, on any console, over SSH or in Plasma, to the last logout |
~/.config/kdos/timers.d/ |
The timers user service, for you |
The same; kdos remind writes its reminders here |
snooze waits for its slot, runs the command once and exits, so something has to start it again.
For the system table the supervisor does that; each system job is a service named
kdos-timer-NAME. For the two user tables one supervised process,
/usr/local/lib/kdos/user-timers, runs a loop per row; service --user restart timers reads both
tables again after an edit, and the user services’ stop at the last logout ends every loop. A job
of the user tables keeps running past a logout only for a user loginctl enable-linger names. A
job’s standard output is discarded and its standard error kept, in the service’s log under
$XDG_RUNTIME_DIR/ksvc and in syslog.
Before a row’s loop starts, the command’s first word must be on PATH and snooze -n must accept
the timespec. A row that fails either check is reported and not started.
Choose the table by who must be there: a job that must run on a machine nobody has logged into goes
in the system table; a job that writes into $HOME goes in yours.
Shipped jobs, at deliberately different times so that a laptop waking up is not running several at once:
| File | Table | When | Runs |
|---|---|---|---|
/etc/kdos/timers.d/10-update-check.timer |
System | 04:17, slack 8 h | kdos update check --out /var/lib/kdos/update.json, which reads what the last fetch left and reaches no network |
/etc/kdos/timers.d/20-fstrim.timer |
System | 12:47, slack 20 h | fstrim -a |
/etc/kdos/user-services/timers.d/40-box-gc.timer |
Every user | every ten minutes | nice -n 10 kdos-box gc |
~/.config/kdos/timers.d/20-updatedb.timer |
Yours | 03:05, slack 8 h | kdos-updatedb; the first index is built at login when there is none |
~/.config/kdos/timers.d/10-backup.timer |
Yours, commented out | 03:40, slack 8 h | kdos backup run |
No shipped timer downloads anything: kdos update fetch and fwupdmgr refresh run when you ask.
~/.config/kdos/a11yShips absent. Its existence — an empty file is enough — gives boxed applications the
accessibility bus whether or not a screen reader is running. Without it a box is given the bus only
when assistive technology is in use: the screen reader is on in System Settings, or the running
accessibility registry reports a tool attached. KDOS_A11Y=1 or 0 decides one launch. The bus is
unfiltered, which is why it is not given by default: a client on it can read the text of every
other application on it. A box’s bus policy is set when the box starts, so a screen reader switched
on later reaches a box from its next start. See Accessibility.
~/.config/kdos/checklistThe first-run checklist’s own state: the items you dismissed, written by kdos checklist dismiss
and the checklist widget, and cleared by kdos checklist restore. Whether an item is done is never
stored; it is measured each time the list is asked for. See
kdos checklist.
The KDOS window memory script, a KWin script that is on by default, opens a program’s window where
its last one closed, at the same size. Its two settings are in kwinrc, under
[Script-kdos_window_memory]. The script has no settings dialog, so set them with kwriteconfig6
and switch the script off and on again on System Settings’ KWin Scripts page, or log out and in:
kwriteconfig6 --file kwinrc --group Script-kdos_window_memory --key RememberDesktop true
| Key | Default | Means |
|---|---|---|
Exclude |
A built-in list: Plasma’s shell, KRunner, Spectacle, Yakuake, the polkit and wallet prompts, the Welcome Center and the Xwayland video bridge | The application ids the script leaves alone, comma-separated. A value replaces the built-in list rather than adding to it, so copy the ones you want to keep |
RememberDesktop |
false |
Whether a window also returns to the virtual desktop it closed on |
The remembered places are kept in $XDG_STATE_HOME/kdos/window-memory, by default
~/.local/state/kdos/window-memory.
KDOS’s defaults for Plasma and the KDE programs are KConfig files in /usr/share/kdos/xdg, the
last directory on XDG_CONFIG_DIRS. Each sets only the keys KDOS decides; every other key keeps
upstream’s default. A file of the same name in /etc/xdg is read before it, and your own in
~/.config before both, key by key.
| File | Read by | Sets |
|---|---|---|
kdeglobals |
Every KDE and Qt 6 program | The look-and-feel org.kdos.bone.desktop (dark) and org.kdos.paper.desktop (light), not switched automatically; the fonts, Noto Sans 10 for text and JetBrains Mono 10 fixed-width; Konsole as the terminal; the icon theme KDOS and the sound theme kdos; animations at half length (AnimationDurationFactor=0.5); double-click to open; and ghns=false under [KDE Action Restrictions], locked, so no Get New… button downloads anything. Installed by kdos-plasma-look, with the greeter’s colours generated into it |
kwinrc |
KWin | Four virtual desktops in one row, named main, www, hack and misc; one window switcher entry per application; the zoom following the text cursor; auto-tiling (Krohnkite) off; and fcitx5 as the input method KWin starts |
kglobalshortcutsrc |
kglobalacceld |
The KDOS chords beside KDE’s defaults: Meta+Q closes a window, Meta+F1 and Meta+/ show the key card, Meta+Return and Ctrl+Alt+T open Konsole, Alt+Space, Alt+F2 and Meta+Space open KRunner, Print takes a screenshot, Shift+Print, Meta+Shift+Print and Meta+Shift+S a screenshot of a region, and Meta+Shift+R, Meta+R and Alt+Print record a region. The auto-tiling (Krohnkite) shortcuts are left unbound, so they do not take these keys. A shortcut you set in System Settings is yours and is kept |
kconf_updaterc |
kconf_update |
Two upgrade steps marked done, each of which would undo what a new account’s first login sets up: KWin’s kwin-6.1-remove-gridview-expose-shortcuts, which would delete the Present Windows keys (Meta+F9, Meta+F10, Meta+F7) the Window View effect has just registered, and plasma-workspace’s migrate-calendar-plugins, which empties and rewrites the panels file in the same second as the desk’s first layout, so plasmashell could save the emptied file and the account keep Plasma’s default panel settings for good |
kscreenlockerrc |
The screen locker | Lock after 10 minutes idle and on resume, with 5 seconds’ grace; the clock and the media controls on the lock screen; the bone wallpaper behind it |
powerdevilrc |
PowerDevil | On mains power, dim after 5 minutes and switch the screen off after 15 |
plasmarc |
plasmashell |
The Plasma style kdos |
krunnerrc |
KRunner | kdos first among the favourite runners, whose categories KRunner sorts above every other, so the KDOS palette’s rows lead; then KRunner’s own default favourites |
breezerc |
The Breeze window decoration | Square corners with an outline, no title-bar gradient, the title on the left |
ksmserverrc |
ksmserver and Plasma’s fallback session save | excludeApps=org.kde.plasma-welcome.desktop,plasma-welcome: a Welcome window open at a logout is not restored at the next login, where it would open as the full tour; the login mode keeps upstream’s default, restore the previous session |
startkderc |
startplasma |
systemdBoot=false: the session is started by startplasma itself, with no systemd user manager |
kaccessrc |
kaccess |
[ScreenReader] SystemdManaged=false, locked, so turning the screen reader on starts Orca directly |
kcm-about-distrorc |
About this System | The KDOS logo, the project’s address, the release from /etc/os-release, and the KDOS rows (slot, update, tree, accent, C library, boxes) from the about-* scripts in /usr/libexec/kdos |
baloofilerc |
The file indexer | Basic indexing only, file names and metadata, never contents; package caches, containers and KDOS’s own data left out |
discoverrc |
Discover | The KDOS backend first; no ratings fetched from KDE’s review server; no offline updates; lists sorted by name |
PlasmaDiscoverUpdates |
Discover’s update notifier | No unattended updates; at most one notice a day |
freespacenotifierrc |
Plasma’s free-space notifier | Warn when a volume has 10% of its size free, or 100000 MiB on a volume of more than about a terabyte: the notifier warns below the smaller of its two thresholds, so the fixed one is raised to its maximum |
systemmonitorrc |
System Monitor | Opens on KDOS’s Overview; the pages Overview, KDOS, Applications, History and Processes, in that order; the stock Overview hidden |
spectaclerc |
Spectacle | Starting it from the menu takes a full-screen shot |
knightsrc |
Knights | Stockfish as both engines |
qmlkonsolerc |
QMLKonsole | The terminal colour scheme KDOS-Bone, from /usr/share/konsole; upstream’s default, Breeze, is a scheme no package installs, so the widget would fall back to black on white. Installed by qmlkonsole; kdos theme writes the accent’s scheme into ~/.config/qmlkonsolerc while the value in force names a KDOS- scheme |
ksystemlogrc |
KSystemLog | The system tab reads /var/log/messages and the cron tab /var/log/cron, the files sysklogd writes, at the Information level, with no process filter, since upstream’s keeps only /usr/sbin/cron and cronie logs as crond; the window opens on the cron tab, the one an ordinary account can read |
KDE/Sonnet.conf |
Sonnet, the spell checker of every KDE program, and the Spell Check page | en_US as the default language, which both English dictionaries carry; without it the C locale names no dictionary and the page opens with unsaved changes. A QSettings file, so its comments start with ; |
plasma_workspace.notifyrc |
Plasma’s notifications | The KDOS sounds for login and logout |
kde-mimeapps.list |
Every program that opens files, inside Plasma and out | The default application for each file type; see Default handlers |
qt5ct/qt5ct.conf |
Qt 5 programs, through qt5ct | The bone palette, the KDOS icons, the Fusion style and the desktop’s fonts, copied into ~/.config/qt5ct by the first Qt 5 program you start; kdos theme keeps that copy in the accent |
plasma-workspace/env/kdos.sh, kdos-shortcuts.sh |
startplasma, before anything else starts |
The session’s environment, and the one-time seeding of the KDOS chords into your kglobalshortcutsrc, recorded in $XDG_STATE_HOME/kdos/kglobalshortcutsrc.seeded |
plasma-workspace/shutdown/kdos.sh, kdos-boxes.sh, kdos-speech.sh |
plasma-shutdown, at Log Out, Restart and Shut Down |
In turn: kdos-box gc --session-end, which stops every box past its autostop; kdos-appbox session save, which records the running boxes for the next login; and the end of the session’s Speech Dispatcher when no other login of yours still uses it |
plasmasetuprc |
Plasma Setup, the first-boot account wizard | The groups the account it creates joins: wheel, users, audio, video, render, input, kvm, cdrom, dialout, lpadmin and tty, the same as an account the installer makes. Installed by plasma-setup |
autostart/ |
Plasma’s autostart | The entries of kdos-notice and the firewall’s question, kdos-fwask |
The overlays. Two directories go in front of /etc/xdg, each only where it applies; your own
~/.config still outranks them, so you can turn either setting back on.
| Directory | Applies | Sets |
|---|---|---|
/usr/share/kdos/xdg-vm |
In a virtual machine (kdos in-vm) |
No idle dimming, no screen blanking, no timed lock and no idle or lid suspend, which from outside the guest look like a hung machine; and software video decoding in Haruna (HWDecoding=no), since a guest without 3D acceleration draws a black or corrupted picture when libmpv tries hardware decoders |
/usr/share/kdos/xdg-live |
On the live medium | No file index; no timed lock, since the live session is SDDM’s autologin of the kdos account, whose password, like root’s, is kdos (Meta+L and a lock on resume still lock, and kdos unlocks them); the wallet off (Enabled=false), since an autologin gives no password to open it, so a program that stores a secret gets an error and keeps nothing; no update notices; and the Welcome Center on its live page, offering the installer |
What /etc/xdg carries. The image’s own /etc/xdg holds the files every desktop must read, not
only Plasma:
| Path | Sets |
|---|---|
/etc/xdg/kdeglobals |
LookAndFeelPackage=org.kdos.bone.desktop, so a program run outside the session, under sudo or pkexec, still wears the KDOS look. The installer rewrites it with the accent you choose |
/etc/xdg/konsolerc |
Konsole’s default profile, KDOS Bone when Plasma is dark and KDOS Paper when it is light |
/etc/xdg/mimeapps.list |
The handlers for the types no desktop application opens, kdos-openarchive for comic books packed as 7z or rar, and the removed associations KDOS ships: Ark off the OpenDocument and Office Open XML types, which are zip files underneath, and Kate and Okular’s text viewer off text/calendar, which both claim as plain text. Until an office program is installed, an office document opens the note of kdos-nooffice.desktop, which claims those types so that GLib, which honours a removed row only for the type it names, does not fall through to Ark’s application/zip; until a calendar program is installed, an invitation shows the Open With chooser and Default Applications names no calendar. |
/etc/xdg/fcitx5/config |
The keys that move between input-method groups, Super+Alt+Space and Super+Alt+Shift+Space |
/etc/xdg/fcitx5/conf/wayland.conf |
Allow Overriding System XKB Settings=False, so fcitx5 never writes its group’s layout into ~/.config/kxkbrc and the layout list stays KWin’s: the installer’s, locale1’s and the Keyboard page’s |
/etc/xdg/fcitx5/conf/classicui.conf |
UseDarkTheme=True with DarkTheme=default-dark and UseAccentColor=True, so the candidate window follows the portal’s colour scheme (dark under the seven dark accents, light under Paper) and takes its highlight from the accent. A copy the Input Method page saves in ~/.config/fcitx5/conf/ replaces it whole |
/etc/xdg/autostart/kdos-boxes-restore.desktop |
kdos-appbox session restore at login: the boxes that were running when the last session ended |
/etc/xdg/autostart/kdos-session-good.desktop |
kdos-notice --bless at login: confirms the booted system version once Plasma has stayed up |
/etc/xdg/autostart/kdos-mpris.desktop |
kdos-mpctl mpris, the bridge that puts mpd on the session bus for the media keys and the Media Player widget |
/etc/xdg/autostart/kdos-speech-sync.desktop |
kdos speech sync at login: offers Klipper’s Read Aloud action while a voice is installed, and takes it away when none is |
/etc/xdg/menus/applications-merged/kdos-boxes.menu |
A Boxes submenu in the application launcher for the boxed applications |
The installer writes /etc/xdg/kdeglobals, /etc/xdg/kdosrc and /etc/xdg/kxkbrc with the
accent, the desk and the keyboard chosen at install, so every account on the machine starts with
them; /etc/xdg/kdeglobals is the only one of the three the image ships. kdos-settingsd
rewrites /etc/xdg/kxkbrc on every locale1 layout change, and removes it for an empty layout, so
the layout plasma-setup or the Keyboard page sets through locale1 replaces the installer’s.
~/.config/kdos/boxes/<name>.confOne file per box. A box is the container a boxed application runs in (see
Packs and boxes), and its profile says what the
box may reach. Most keys become a container-engine flag or something KDOS enforces itself; a few
are only recorded, and the Applies column below marks them —.
Change a profile with kdos-box profile <name> key=value, or on System Settings’ Boxes page, which
runs that command rather than writing the file itself. kdos-box profile <name> with no setting
prints what each key turns into on that box, and says so where a value cannot be enforced. A box
with no profile file takes every default below: everything shared with your session, as a plain
distrobox create would make it.
Three kinds of box. base decides how a box is made, and the kinds honour different subsets of
the keys:
| Kind | base |
Made by |
|---|---|---|
| Pack box | pack:<id> |
podman create --rootfs over the pack the pack daemon composes |
| Store box | image:kdos/<id> |
podman create over an image that kdos-appbox install built on this machine |
| Development box | image:<ref>, any other image |
distrobox create over somebody else’s image. It shares your session’s runtime directory, so it is never confined as tightly as the other two |
kdos-appbox has the flag-by-flag mapping for each kind.
Values. For ipc, processes, devices and home, private, yes, on, 1 and true
give the box its own, and shared, no, off, 0 and false share yours. A value a key does not
take is refused by kdos-box create and kdos-box profile with a line ending nothing was
written. In a file you edit by hand, such a line is ignored and named under the profile when it is
printed; the key keeps its default or the value an earlier line gave it.
| Key | Default | Applies | Means |
|---|---|---|---|
base |
— | create time | pack:<id>, image:<ref> or box:<name>. kdos-box create resolves box:<name> to that box’s own pack: or image: base and saves the result in the profile, so the new box starts from the same software with an empty writable layer. kdos-box create refuses a box with no base, or with pack: or image: and nothing after it |
image |
— | create time | An image reference. A profile with image and no base, such as one for a box distrobox made directly, is treated as a development box of that image. kdos-box create writes image from base = image:<ref>, so set base rather than this |
persistence |
persistent |
create time | persistent keeps the box’s writes. On a pack box ephemeral lays a throwaway layer over the box and removes the container when it stops, and frozen keeps the container but discards its writes; on a store box ephemeral removes the container when it stops and frozen is not enforced; a development box enforces neither |
network |
host |
create time | host shares your network, private gives the box a namespace of its own with an interface, and none gives it no interface at all. no, off, 0 and false are refused, since they could mean either host or none |
ipc |
shared | create time | Whether the box has its own IPC namespace |
processes |
shared | create time | Whether the box has its own PID namespace, and so cannot see your processes |
devices |
shared | create time | Whether the host’s /dev and /sys are shared with the box |
home |
shared | create time | private gives the box its own home under $XDG_DATA_HOME/kdos/boxes/<name> (by default ~/.local/share/kdos/boxes/<name>) instead of your $HOME |
init |
no |
create time | Development boxes only: yes passes --init to distrobox create, which runs the image’s own init system as the container’s first process. A pack box and a store box always run KDOS’s kdos-boxinit first |
wayland |
yes |
next launch | no leaves the tagged Wayland socket kdos-boxsock makes out of its private runtime directory, so it can open no window. Not enforced on a development box |
audio |
yes |
next launch | no leaves the PipeWire and PulseAudio sockets out of the box’s private runtime directory. Not enforced on a development box; see below for the sound devices |
x11 |
yes |
next launch | Whether the box is handed the X11 display and your session’s cookie. yes lets a program written for X11 alone (Tk, Java’s AWT and Swing, Motif, FLTK, GTK 2) open its window through Xwayland; no withholds it, and such a program finds no display and exits. An X11 program can read every other X11 program’s windows and keys, so on a pack or store box x11 = no is what confines it fully. Not enforced on a development box, nor where the session’s cookie is reachable through $XAUTHORITY; kdos-box profile <name> says so |
gpu |
yes |
create time | The graphics card’s device nodes |
render |
auto |
next launch | Which graphics the box’s applications get: auto, gpu, or software |
memory |
— | create time | A memory limit such as 512m or 4G, at least 6 MiB, or unlimited; passed to the engine as --memory. The memory daemon also kills a box over its limit first when memory runs short, since rootless containers often cannot enforce the flag |
cpus |
— | create time | A CPU quota such as 2 or 1.5, or all; the engine’s --cpus |
pids |
— | create time | A process-count limit (--pids-limit); 0 for none |
autostop |
0 |
next collection | Running time, counted from when the box started, after which kdos-box gc stops it if none of its windows is open: 90s, 30m, 2h, or bare seconds. 0 disables |
accent |
session |
immediate | The box’s colour, an accent name. Its windows’ title bars take that accent’s colour scheme through the KWin window rule kdos-box-<name> in kwinrulesrc, which kdos-box profile and kdos-appbox genlaunchers rewrite, and kdos-box enter opens Konsole in it. session, or none, which is stored as session, gives the title bars the scheme KDOSBox. A window that draws its own title bar takes no colour |
grant |
— | next client | Desktop features the sandbox otherwise refuses, comma-separated (see below). A running client keeps what it bound |
export |
manual |
— | Recorded only. auto does not create launchers by itself: kdos-appbox genlaunchers covers every installed pack and store box, and kdos-box export covers one application |
display |
window |
— | Recorded only; nothing on this desktop reads it. It is kept so that rewriting a profile does not drop it |
A development box passes memory, cpus, pids and network = none to podman through
distrobox create --additional-flags, turns network = private into distrobox create --unshare-netns, and refuses, with a warning, a memory or cpus value made of
anything but letters, digits and dots.
Create-time keys cannot be changed on a container that exists, so changing one tells you to recreate the box rather than silently doing nothing.
gpu and audio cannot subtract anything from a shared /dev: there is no engine flag that
grants a box a speaker and denies it a camera, so with devices = shared the box sees every device.
With devices = private, gpu = yes binds /dev/dri back in by itself, and nothing binds the
sound devices back, which leaves the PipeWire socket as the box’s way to sound. The profile printer
states each case as it is.
render resolves by opening a /dev/dri/renderD* node: hardware where one opens, software
where none does. gpu asks for the same, and software refuses the card whatever is present. For a
software box the launch sets LIBGL_ALWAYS_SOFTWARE=1, which is advisory — an application may
unset it. For a box that can see no device node (devices = private with gpu = no) the answer is
software without probing. render is separate from gpu because gpu is about device nodes and
render is about who draws.
grant names, one or more of these, in the order the Boxes page lists them:
| Grant | Lets the box |
|---|---|
window-list |
List and act on every window (org_kde_plasma_window_management) |
fake-input |
Type and click into other windows (org_kde_kwin_fake_input) |
screencast |
Record the screen without asking (zkde_screencast_unstable_v1) |
data-control |
Read and set the clipboard at any time (ext_data_control_manager_v1) |
layer-shell |
Draw panels and overlays (zwlr_layer_shell_v1) |
output-management |
Change the screens’ modes and layout (kde_output_management_v2) |
dpms |
Switch the screens off and on (org_kde_kwin_dpms_manager) |
plasma-shell |
Place its windows as the shell does (org_kde_plasma_shell) |
input-method |
Pass KWin’s filter for the input-method globals, which KWin still offers only to the input method it started |
secrets |
Reach the password store (org.freedesktop.secrets on the session bus) |
The first nine are Wayland globals KWin refuses a sandboxed client unless its box’s profile names
them; secrets is a rule of the box’s bus proxy. A name not in this list grants nothing, and
kdos-box profile says so. See KWin.
base = image: pulls from a registry, so it needs the network, and says so before doing anything.
~/.config/kdos/sandbox/<profile>.confProfiles for kdos sandbox, which runs a native (non-boxed) program under a Landlock ruleset.
Landlock is the kernel’s access-control interface that an unprivileged process applies to itself;
the kernel reports which version of it (its ABI) it supports, and rules about TCP need ABI 4. A
profile is named on the command line — kdos sandbox <profile> -- <cmd> — and combines with the
command-line options.
| Key | Repeatable | Means |
|---|---|---|
read |
yes | A path the program may read |
write |
yes | A path the program may read and write |
network |
no | off denies TCP bind and connect. Any other value leaves the network open. Needs Landlock ABI 4 |
tcp-connect |
yes | A TCP port the program may still connect to while network = off |
A run takes at most 64 read paths, 64 write paths and 64 ports, counting the profile’s and the
command line’s together: a 65th path stops kdos sandbox with an error, and ports past 64 are
dropped. A named path that cannot be added to the ruleset, such as one that does not exist, also
stops it. An unknown key is reported and skipped.
kdos sandbox <profile> --explain prints exactly what will be asked for, including what this
kernel cannot enforce. Nothing runs unconfined: with no Landlock at all, or with network = off on a
kernel below ABI 4, kdos sandbox refuses to start the program rather than run it with less
confinement than the profile asked for. See
kdos sandbox.
/etc/kdos/packd.confThe pack daemon, kdos-packd, which installs and mounts application packs.
| Key | Default | Applies | Means |
|---|---|---|---|
retain |
1 |
next start | How many superseded versions of a pack the store keeps, at most 8 |
Retention is what makes rollback possible: 1 keeps the version you just replaced. 0 keeps none,
and a rollback then answers that no earlier version is kept. A negative value counts as 0, and a
value above 8 keeps 8. The environment variable KDOS_PACK_RETAIN, when set, overrides the file.
Old versions are removed right after an install and at no other time, so a background job never deletes a rollback while you are deciding whether to use it.
/etc/kdos/zram.confCompressed swap in RAM.
| Key | Default | Range | Applies | Means |
|---|---|---|---|---|
size |
50 |
1–90 | boot | Swap size as a percentage of RAM |
algorithm |
zstd |
a compressor the kernel carries | boot | Compression algorithm |
The service is /etc/init.d/12_zram.sh. size is how much swap the device may claim to hold, not
how much memory it uses — the compressed pages live in that same memory. Only the leading run of
letters and digits in the size value is read: 12.5 is taken as 12, and a run that contains a
letter is ignored, leaving 50. A value outside 1–90 is reported and 50 is used. An algorithm
the kernel does not carry is reported and the kernel’s default stands. The device is swap at
priority 100, ahead of any disk swap. While it is active, zswap is turned off (so no page is
compressed twice) and vm.page-cluster is 0 (read-ahead on zram is wasted decompression);
stopping the service turns zswap back on and sets vm.page-cluster to the kernel default of 3.
/etc/kdos/update.confNot shipped. Tells kdos update where a newer system comes from, what an armed slot keeps, and
how kdos update install installs software when its command line names no route. System Settings’
System Versions page writes install and build-deps through kdos-sysupdated
(io.kdos.Slots1.SetInstallRoute).
| Key | Default | Means |
|---|---|---|
tree |
https://github.com/kunaldawn/kdos/releases/latest/download |
Where kdos-ports.tar.xz and kdos-ports.tar.xz.sig are: an https:// or file:/// URL, or a directory such as a USB stick or an NFS mount. kdos update fetches with curl --proto =https,file, so an http:// address fails, and System Versions (io.kdos.Slots1.SetChannel) refuses one. It moves only the tree: binhost and image keep their own lines |
binhost |
the release <version> of a tree whose stamp names its release |
Where the binhost, the host of prebuilt packages that kdos update apply and kdos update install take, is found: the place that holds its signed release index, kdos-update.idx. An https:// or file:/// URL, or a directory such as build/binhost copied to a stick. An http:// address fails, and kdos update fetch says binhost takes an https:// URL or a directory. When the last fetch found no binhost at the address, kdos update check reports a binhost-absent problem and tells you to publish one there or name another here. A result is kept with the address it was fetched from, so after you change or remove this line check reports only on the address named now. A tree names its release when it is a published one or the image was built from a clean checkout of a tagged commit; on any other image prebuilt installs need this line, or $KDOS_UPDATE_BINHOST |
image |
the latest KDOS release | Where the signed release index is through which the slot image and its manifest are found, for kdos update apply --image: a URL, or a directory such as the one script/release-image.sh wrote |
carry |
— | A path, relative to the root, that an armed slot keeps from the running one beyond what is always carried; repeatable. Never under /etc, which is carried file by file anyway |
install |
prebuilt |
The route kdos update install takes with neither --prebuilt nor --source: prebuilt from the release binhost, or source, built on this machine. Discover does not read it: each of its two origins names its route |
build-deps |
prebuilt |
For a source install, whether each dependency the machine lacks is downloaded prebuilt (one the binhost does not cover is built) or built too (source); --build-deps= overrides it. A prebuilt install takes its dependencies prebuilt whatever it says |
Each of tree, binhost and image also has an environment variable, and they do not all rank the
same way:
| Key | Looked up in this order |
|---|---|
tree |
kdos update fetch --from, then $KDOS_UPDATE_TREE, then this file, then the latest release |
binhost |
This file, then $KDOS_UPDATE_BINHOST, then the release the tree names |
image |
--from, then this file, then $KDOS_UPDATE_IMAGE, then the latest release |
So $KDOS_UPDATE_TREE overrides a tree = line, while $KDOS_UPDATE_BINHOST and
$KDOS_UPDATE_IMAGE apply only when the file names no binhost or image. A value of install or build-deps other than
prebuilt or source makes kdos update install exit 2. Whatever arrives is checked against
/etc/kdos/keys/ before it is used. Sources are not configured here: kpkg
fetches them from the KDOS source archive and then upstream, and KDOS_SOURCES_BASE moves the
archive as it does for ports/fetch. See kdos update.
/etc/kdos/keys/The trusted keys. The directory is the policy: every public key (*.pub) here is one this machine
accepts a signature from. Trusting a key is copying a file in; removing trust is deleting it. There
is no revocation list and no online check.
| Directory | Trusted for |
|---|---|
/etc/kdos/keys/ |
Host package indexes (a binhost’s PACKAGES.sig) and package signatures |
/etc/kdos/keys/packs/ |
Application packs and pack indexes |
/etc/kdos/keys/tree/ |
The ports tree kdos update fetch installs as /ports, and the slot image’s manifest |
Keys are read from each directory without descending into subdirectories, which keeps the three policies separate: a pack key or a tree key cannot become a trusted source of host packages.
The host directory ships with no keys, only a README stating the policy. Packages are built from
source on the machine and checked against the sha256 in their recipe, so nothing needs a
signature until you choose a binhost. To trust one:
kpkg keygen builder # on the machine that builds
cp builder.pub /etc/kdos/keys/ # on every machine that should trust it
The pack directory ships one key, kdos-packs.pub. A pack or pack index signed with its private
half would be accepted, but nothing the build makes is signed with it and the build does not hold
it, so the key verifies nothing on a fresh system. To trust packs you sign yourself, add your own
.pub from kdos-pack keygen, and delete kdos-packs.pub if you want only yours. See
Security model.
The tree directory holds kdos-release.pub, the public half of the release key of the build that
made the image. The image step copies it from build/keys/kdos-release.pub; the secret half,
build/keys/kdos-release.key, is what ports/publish --release signs each release’s tree with. An
image built without build/keys/kdos-release.pub ships the directory with only its README, and
fetches no tree. Put the key of whoever publishes the trees you follow here.
/etc/sddm.conf.d/The login screen. SDDM reads every file in this directory in name order, a later file’s key winning.
| File | Sets |
|---|---|
00-kdos.conf |
The greeter on Wayland, under kwin_wayland --no-global-shortcuts --no-lockscreen --inputmethod plasma-keyboard --locale1; the greeter’s environment (GreeterEnvironment), which its KWin and the on-screen keyboard KWin starts inherit: the layer-shell Wayland shell integration (QT_WAYLAND_SHELL_INTEGRATION=layer-shell), KDOS’s XDG_CONFIG_DIRS, QT_QPA_PLATFORMTHEME=kde, so plasma-keyboard takes the sddm account’s KDOS colours rather than Qt’s light palette, greyscale Qt Quick text, and QML_XHR_ALLOW_FILE_READ=1, so the theme’s footer can read the release from /etc/kdos-release; kdos-session-wrapper as every session’s command; Wayland sessions only; accounts from UID 1000 to 60000; the last user and session remembered; the theme kdos, the Breeze cursor at 24 and Noto Sans 10 |
kde_settings.conf |
Autologin: [Autologin] User, Session=plasma and Relogin=true. Ships naming kdos, the live medium’s account |
kde_settings.conf is the file System Settings’ Login Screen page writes, and the installer
rewrites it. On the live medium Relogin=true logs the live account in again after it logs out;
Switch User still shows a greeter.
An installed machine has an [Autologin] group only when it logs in by itself, which the installer
offers on a single-account machine with an encrypted root, with Relogin=false, so a person who
logs out meant to; everywhere else it shows the login screen. Applies at the next start of SDDM, which is the next boot or the next return to the greeter.
See Boot and init.
/etc/elogind/logind.conf.d/50-kdos.conf and sleep.conf.d/50-kdos.confelogind’s settings, as drop-ins over its own logind.conf and sleep.conf.
| Key | Value | Means |
|---|---|---|
KillUserProcesses |
no |
A user’s processes survive their logout, so a lingering user’s boxes and timers keep running |
RemoveIPC |
no |
A user’s shared memory and semaphores are kept at logout |
DelegateSessionCgroups |
yes |
Each session gets a cgroup of its own that the user may manage |
HandleLidSwitch, HandleLidSwitchExternalPower |
suspend |
Closing the lid suspends, on battery or on mains |
HandleLidSwitchDocked |
ignore |
Closing the lid with an external screen does nothing |
HandlePowerKey |
poweroff |
The power button shuts down |
InhibitDelayMaxSec |
5 |
How long a program holding a delay lock may hold up a suspend |
AllowHibernation, AllowSuspendThenHibernate, AllowHybridSleep |
no |
Suspend to RAM only. KDOS swaps to zram, which is memory and holds nothing across a power-off, so there is no disk image to resume from; with these off, PowerDevil and the Leave menu offer no action that would lose the session |
AllowSuspend |
no on a virtio-gpu display, unset elsewhere |
Written by 40_elogind.sh to /run/elogind/sleep.conf.d/60-kdos-virtio-gpu.conf before elogind starts. The kernel’s virtio-gpu driver does not survive a resume, after which the console and a reboot hang, so such a machine is offered no Sleep |
Applies at the next start of elogind, which is the next boot. Inside a Plasma session PowerDevil takes the lid and power-key inhibitors and its own settings decide; these keys apply at the login screen and on a console login.
/etc/turnstile/turnstiled.conf and /etc/kdos/user-services/turnstiled starts a user’s own services at that user’s first login and stops them at the last.
The shipped configuration names ksvc as its backend (/usr/lib/turnstile/ksvc), makes the runtime
directory /run/user/<uid>, exports the session bus address into each login, and lingers only for
a user loginctl enable-linger names.
The services themselves are /etc/kdos/user-services/*.sh, run in name order by ksvc as the
user: 10_dbus (the session bus at $XDG_RUNTIME_DIR/bus), 15_ssh-agent (one ssh-agent per
account, at $XDG_RUNTIME_DIR/ssh-agent.socket), 20_pipewire, 21_wireplumber,
22_pipewire-pulse, 25_mpd (only when an mpd configuration file exists), 30_timers (the user
timer tables above) and 40_boxes (which stops your running boxes at the last logout).
service --user list shows them; service --user disable NAME keeps one from starting, recorded in
~/.config/kdos/user-services.disabled. See
ksvc and service.
/etc/nftables.confThe firewall. /etc/init.d/25_nftables.sh applies it at boot, before the network starts, after a
syntax check (nft -c) — a ruleset that does not load is never half-applied. When a firewall is
already loaded, it stays standing. When none is, as at boot, the script loads this file without
its /etc/nftables.d drop-ins, or, when that does not load either, a minimal drop policy written to
/run/nftables-fallback.nft (this machine’s own connections, loopback, the ICMP and ICMPv6 that
IPv4 and IPv6 need, and the DHCPv6 client), and reports [FAIL] either way, so one broken drop-in
never boots a machine with no input filter. The file replaces only its own inet filter table, so podman’s inet netavark
table and NetworkManager’s nm-shared-* tables survive a reload, and changing the firewall does not
cut off running containers or hotspot clients.
The shipped policy:
invalid connection state are dropped
explicitly. Accepted: established and related traffic, loopback, the
necessary ICMP and ICMPv6 types (including neighbour discovery and router advertisements),
multicast DNS (UDP 5353), NetBIOS name service (UDP 137 to 137), WS-Discovery answers from the
local network (UDP from port 3702, from a private or link-local address, to an ephemeral port), so
Dolphin’s network view finds Windows machines, DHCPv6 client replies (UDP 546), and DNS and DHCP
from the NetworkManager hotspot range 10.42.0.0/16.10.42.0.0/16, so a hotspot’s clients reach the network.Anything else that should be reachable needs a rule; the file has commented examples. Every *.nft
in /etc/nftables.d is included last and adds to table inet filter (a separate table would keep
stale rules across a reload):
| File | Written by | Does |
|---|---|---|
40-podman.nft |
Shipped | Lets rootful podman’s bridges forward and reach their DNS |
40-libvirt.nft |
The libvirt package |
Lets libvirt’s virbr* NAT bridges forward and reach their dnsmasq for DHCP and DNS |
50-kdos-services.nft |
Shipped empty; rewritten by System Settings’ Firewall page and kdos-power firewall, through kdos-powerd |
Opens the services you turned on |
The firewall is the one service /etc/init.d/rcK does not stop at shutdown, so the machine is
never unprotected while the other services wind down.
See The firewall for opening a service.
/etc/fstabApplies at boot. The shipped entries mount the kernel’s pseudo-filesystems (/proc, /sys,
/dev, securityfs at /sys/kernel/security, tracefs, debugfs and bpf, the last four nosuid,nodev,noexec), the cgroup v2 hierarchy
with nsdelegate, and two temporary filesystems, both nosuid,nodev: /tmp at mode 1777 and
/run at mode 0755.
/tmp must be mode 1777, or no ordinary user can write there, and every graphical application
depends on it. A tmpfs that is already mounted ignores a mode change on remount, so
/etc/init.d/rcS also runs chmod 1777 /tmp itself. It creates /run/lock at mode 1777 for the
same reason: the serial-port tools take their locks there as the user. It also creates
/tmp/.X11-unix and /tmp/.ICE-unix, root-owned at mode 1777: KWin starts no Xwayland without
the first, and libICE refuses a second account an ICE directory the first session’s user made.
mount -a ignores swap lines, so rcS turns on any swap entry with swapon -a; the installer
writes one for a swap partition or a swap file. The installer keeps every shipped
entry: it writes its own lines (root, the EFI partition, swap) first and the shipped file after
them.
/etc/inittabsysvinit’s init reads it at boot, and again on telinit q. What each entry starts:
| Entry | Starts |
|---|---|
id, initdefault |
Runlevel 3, the running system. S is single-user, 0 powers off, 6 reboots |
si, sysinit |
/etc/init.d/rcS, which starts every enabled service script in order |
~~, runlevel S |
/sbin/sulogin -p: root’s password, then a root login shell on the console, which reads /etc/profile and so finds the KDOS commands in /usr/local/bin; leaving it continues to runlevel 3 |
1, tty1 |
kdos-dm, which runs SDDM, the graphical login; when SDDM is missing or exits three times in a minute it puts a password prompt on tty1 instead, never an autologin |
2, tty2 |
An ordinary agetty login through kdos-getty, never automatic: the recovery console |
S0, serial line ttyS0 |
/etc/init.d/serial-getty, which runs agetty --autologin root: root, logged in without a password prompt, on the live medium. The installer removes --autologin root from an installed system’s copy, which then asks for a login. With no UART at ttyS0 (its sysfs type is 0) the script sleeps instead of running agetty, which would fail at every respawn |
ca, ctrlaltdel |
/sbin/shutdown -r now |
kc, runlevels 0 and 6 |
Clears the console and hides its cursor, before the shutdown entries print |
k0 to k5, runlevels 0 and 6 |
In order, each to completion: rcK, killprocs, swapoff -a, a read-only remount of the persistence store at /mnt/persist when one is mounted there, umount -a -r, killpower |
h0, h6 |
halt -d -f -p in runlevel 0, reboot -d -f in runlevel 6 |
Both consoles and the serial line respawn when their program ends, and all three belong to
runlevels 2 to 5. On shutdown, init ends them, /etc/init.d/rcK runs every enabled service
script’s stop in reverse order — except the firewall, which stays loaded to the end —
/etc/init.d/killprocs ends every process still running, then swapoff -a turns swap off, a
persistence store at /mnt/persist is remounted read-only,
umount -a -r unmounts every filesystem or remounts a busy one read-only, and
/etc/init.d/killpower tells a UPS to cut the power when NUT’s upsmon began the shutdown on a low
battery (its flag file /etc/killpower is present); otherwise it does nothing.
/etc/service.disabled/<name>A marker file, not a setting. Creating one stops the matching init script from running at boot:
sudo touch /etc/service.disabled/cups
The name is the init script’s with the order prefix and .sh removed: 42_networkmanager.sh is
networkmanager. Delete the file to enable the service again. The image ships one marker, sshd:
the SSH server stays off until kdos-power firewall ssh on, the Firewall page’s switch for it, or
the installer’s SSH choice, removes it. chrony’s marker is also the state of Set time
automatically: timedate1’s SetNTP creates or removes it and starts or stops the service.
networkmanager has a second effect. 30_network starts dhcpcd only when NetworkManager is
absent or disabled this way, so turning NetworkManager off hands DHCP back to dhcpcd rather than
leaving the machine with no DHCP client.
The marker is the only switch a supervised daemon needs. No daemon a service script supervises
(NetworkManager, ModemManager and polkitd among them) has a D-Bus activation file, so the system
bus never starts one of them itself: a call to the name of one that is stopped or disabled fails
with org.freedesktop.DBus.Error.ServiceUnknown and starts nothing. A stopped service therefore
stays stopped, and service restart leaves exactly one copy, the supervised one.
/etc/locale.conf, /etc/keymap and /etc/kdos/xkb.confThe language and the keyboard, written by kdos-settingsd for locale1 (System Settings’ Region
and Keyboard pages, kdos locale, kdos keymap) and by the installer.
| File | Holds | Read by |
|---|---|---|
/etc/locale.conf |
NAME=value lines with no quotes; ships LANG=en_US.UTF-8 |
kdos-dm and SDDM, for the login screen and every session |
/etc/keymap |
The console keymap name; not shipped | kdos-getty, on every console it starts |
/boot/efi/EFI/kdos/keymap |
The same name, one line, on the ESP; written by the installer and kept equal to /etc/keymap by kdos-settingsd |
The initramfs, which loads it on tty1 before the disk passphrase prompt |
/etc/kdos/xkb.conf |
XKBMODEL, XKBLAYOUT, XKBVARIANT and XKBOPTIONS, the graphical layout; ships with all four empty |
kdos-settingsd, which answers locale1’s X11 properties from it; the login screen’s KWin reads those. An empty layout follows /etc/keymap |
/etc/xdg/kxkbrc |
[Layout] LayoutList, VariantList, Use=true, with Model and Options (and ResetOldOptions=true) when set: the same layout; not shipped. Written by the installer when a layout was named, rewritten by kdos-settingsd on every locale1 layout change and removed for an empty one |
KWin and the lock screen, before the XKB_DEFAULT_* environment startplasma builds from xkb.conf, in every session of an account with no ~/.config/kxkbrc |
A person’s own keyboard layout in Plasma is in ~/.config/kxkbrc, and outranks these inside their
session: the system layout reaches a session only for an account whose kxkbrc names no layout,
so an account that has one keeps it when the system layout changes. The Keyboard page writes that
file on Apply; turning its layout list on over an empty one starts the list from the layout the
session runs, so adding German to a US session saves LayoutList=us,de.
/etc/hostname, /etc/machine-info and the time zoneWritten by kdos-settingsd for hostname1 and timedate1 (System Settings’ About and Date & Time
pages, kdos hostname, kdos timezone) and by the installer. /etc/hostname is the static host
name, and the 127.0.1.1 line of /etc/hosts names it too, so the machine’s own name resolves
without a network. /etc/machine-info holds the pretty name, icon and chassis. The time zone is
/etc/localtime, with /etc/profile.d/20-timezone.sh exporting TZ=:/etc/localtime.
/etc/modprobe.d/kdos-regdom.confThe Wi-Fi regulatory country, as options cfg80211 ieee80211_regdom=<CC>. Written from the time
zone’s row in zone.tab whenever the time zone is set, by kdos-settingsd and by the installer.
For a zone with no country, kdos-settingsd removes the file; the installer writes nothing and
removes nothing, so a file already on the installed system stays. Applies when cfg80211 loads,
which is the next boot; iw reg set <CC> changes the running radio.
/etc/kdos/autologin-xdg/Settings that apply to an automatic login and to nothing else. SDDM’s sddm-autologin PAM stack
runs pam_env with /etc/security/sddm-autologin.conf, which puts this directory first on
XDG_CONFIG_DIRS; a password login never reads it. The image ships no such directory. The
installer creates it on a single-account machine with an encrypted root that logs in by itself,
holding a kscreenlockerrc of [Daemon] LockOnStart=true: the session comes up behind the lock
screen, which is that machine’s login. Answering “no password after the disk passphrase” leaves the
directory out. Because the setting belongs to the automatic login rather than to the account,
turning autologin off in System Settings later does not leave every password login locked as well.
/etc/kpkg.confWhere the package manager kpkg keeps its trees. The file is written as shell assignments,
NAME="${NAME:-default}". kpkg parses it itself, reading NAME=value with no space before the
= (a line spelt NAME = value is ignored) and unwrapping the ${...:-...}. It is also sourced by
bash at the start of every port’s build, so a shell expression in it runs there. An exported
environment variable of the same name always wins over the file, which is what the build phases
from 40_lang to 60_kernel rely on: each one’s phase.env exports a PORT_REPO that names
/ports/core and then the checkout’s own src/<area> directories as the build chroot sees them:
/kdos/src/system and /kdos/src/art in every one of them, and /kdos/src/desktop and
/kdos/src/daemons as well in 50_desktop. KPKG_CONF names a different file. The variables
that change what kpkg does rather than where its trees are (KPKG_ROOT,
KPKG_REQUIRE_SIG, KPKG_STRICT_RECIPE, KPKG_KEEP_CACHE, KPKG_SKIP_INDEX, the package
store’s KPKG_STORE, KPKG_STORE_CHECK, KPKG_STORE_SALT and KPKG_STORE_BASE, and the rest)
are environment only and are listed in Packaging. The build
sets the store’s from make build KDOS_PKG_STORE=0|1|check and KDOS_PKG_STORE_MAX; see
Build.
| Key | Default | Means |
|---|---|---|
PORT_REPO |
/ports/core /ports/src/system /ports/src/art /ports/src/desktop /ports/src/daemons |
The port repositories — by default the ports tree, then the four areas of KDOS’s own programs — separated by spaces and searched in order, at most eight; more warn and are ignored. A port is found as <repo>/<name>/ or one shelf down as <repo>/<shelf>/<name>/, and a name at two paths in one repository is an error. See Writing ports |
SOURCE_DIR |
/var/cache/kpkg/sources |
Downloaded source archives |
PACKAGE_DIR |
/var/cache/kpkg/packages |
Built packages |
WORK_DIR |
/var/cache/kpkg/work |
Where a port is unpacked and built |
PKGDB_DIR |
/var/lib/kpkg/db |
The installed-package database |
FACETS |
all; run in the image’s copy |
Which facets of a package an install places: all every file, run the package without its development and documentation files, each left out listed in $PKGDB_DIR/.facets/<name>. Its line is FACETS="${KPKG_FACETS:-all}", so the environment variable is KPKG_FACETS, not FACETS. Any other value warns and installs every facet. The build chroot keeps all; 70_image/017_stage.sh writes run into the image’s copy, so the medium and every machine installed from it have run, and kdos update install --dev installs a package whole there |
See Packaging.
Files the image ships under /etc that an administrator may need to find. Each is in the format
of the program that reads it.
| Path | Read by | Does |
|---|---|---|
/etc/ld-musl-x86_64.path |
musl’s dynamic loader, at every program start | The shared-library search path, one directory per line: /usr/lib, then /usr/lib64. It replaces musl’s built-in default, so /usr/local/lib is not searched. There is no cache to rebuild, and ldconfig (from the musl port) exits 0 without doing anything: a directory added here applies to the next program started |
/etc/sysctl.conf |
/etc/init.d/10_sysctl.sh, at boot |
Unprivileged ICMP sockets for every group (ping needs no setuid bit), the protected_* link, FIFO and regular-file protections, fatal-signal logging and per-task delay accounting. On the network side: ICMP redirects neither accepted (IPv4 and IPv6) nor sent, and the loose reverse-path filter (rp_filter = 2). Kernel addresses in /proc are hidden from accounts other than root (kernel.kptr_restrict = 1). The script runs sysctl --system, which applies every file in /etc/sysctl.d first and this file last, so a setting here wins over a drop-in |
/etc/hosts |
The resolver | localhost for both address families, and 127.0.1.1 kdos, which kdos-settingsd and the installer rewrite with the host name, so the machine’s own name resolves without a network |
/etc/nsswitch.conf |
glibc programs | musl ignores this file. It is there for glibc tools inside boxes and anything else that consults it, and names files, then dns for hosts |
/etc/shells |
chsh, and programs that check a login shell |
sh, bash and zsh, each under both /bin and /usr/bin |
/etc/issue |
agetty, before each console login, because every agetty line in /etc/inittab and kdos-dm names it with --issue-file: agetty built against musl reads no issue file unless one is named |
The pre-login banner: the system name, kernel release, architecture, host name and terminal line |
/etc/vtrgb |
kdos-getty, on every console it starts |
The sixteen console colours, in setvtrgb’s format. kdos theme rewrites it in the new accent, through kdos-powerd and kdos-bootctl theme, and each console takes it at its next login prompt |
/etc/modules-load.d/*.conf |
/etc/init.d/02_modules.sh, at boot |
Modules loaded unconditionally: tun and overlay for containers, the virtual-machine display drivers, the nct6775, it87 and drivetemp sensor drivers, and i2c-dev |
/etc/modprobe.d/kdos-sdr.conf |
modprobe |
Blacklists dvb_usb_rtl28xxu, so an RTL-SDR stick is free for the SDR tools rather than claimed as a TV tuner |
/etc/alsa/conf.d/99-kdos-pipewire.conf |
Every ALSA program | Defines two devices, kdos_pipewire (through PipeWire) and kdos_card (the sound card directly, with no sound server), and makes ALSA’s default whichever the environment variable KDOS_ALSA_DEFAULT names, kdos_pipewire when it is unset: KDOS_ALSA_DEFAULT=kdos_card aplay x.wav plays straight to the card |
/etc/default/pcscd |
/etc/init.d/47_pcscd.sh, at each start |
pcsc-lite’s own keys, every one commented out: PCSCD_ARGS (extra pcscd arguments), PCSCLITE_FILTER_IGNORE_READER_NAMES (readers to hide, by a word of their name, : between words), PCSCLITE_FILTER_EXTEND_READER_NAMES (text added to every reader’s name) and PCSCLITE_HP_DROPDIR (the USB driver directory). One KEY=value per line, parsed and not sourced: the quotes are removed, $HOSTNAME is the one expansion, and any other key is reported and skipped. sudo service restart pcscd applies an edit |
/etc/default/useradd |
useradd, at each new account |
GROUPS=audio: every ordinary account joins audio, whose members get PipeWire’s real-time limits, whether System Settings, AccountsService, Plasma Setup or a hand-run useradd makes it; -G replaces this list rather than adding to it, and useradd -r ignores it. CREATE_MAIL_SPOOL=no: no mailbox for a new account, as /etc/login.defs names no MAIL_DIR and the image has no mail spool. Every key it does not set keeps useradd’s compiled default, which useradd -D prints beside it; useradd -D with a flag (-s for the shell, -b for the home base) writes every key into the file |
/etc/pipewire/pipewire.conf.d/99-kdos-vm.conf |
PipeWire | In a virtual machine only, raises the audio quantum (the block of frames PipeWire processes in one cycle) and its floor to 4096, and its ceiling to 8192 |
/etc/security/limits.d/30-kdos.conf |
pam_limits, at every login |
Real-time priority 1 for every account, so KWin may run the threads that read input and commit frames at the lowest real-time priority; a file capability on kwin_wayland does not survive kpkg’s archive. PipeWire’s 25-pw-rlimits.conf gives the audio group priority 95 for the sound graph, and a group entry outranks this one |
/etc/samba/smb.conf |
Samba, for Dolphin’s Share tab | A standalone server with user shares under /var/lib/samba/usershares, at most 100, guests allowed on a share that asks for them, and no printers. /etc/init.d/83_samba.sh starts smbd at boot only when the sambashare group has a member, a usershare exists or this file defines a share below [global]; an account just added to sambashare starts it at its next login, through kded-kdos and kdos-powerd, because net usershare add needs a running smbd. Other machines reach a share only once the firewall’s smb service is opened |
/etc/polkit-1/rules.d/50-kdos.rules |
polkitd |
Grants members of wheel at the machine the named polkit actions the desktop calls, without a prompt; see the security model |
/etc/udev/rules.d/70-kdos-*.rules |
udevd |
Device access by group: serial, SDR, logic-analyser, debug-probe, instrument, scanner, camera, security-key and GPIO devices to dialout, gamepads to input, the graphics card’s I²C buses (DDC/CI, through which PowerDevil sets an external monitor’s brightness) to video and to the user at the seat, and Brother P-touch label printers to lpadmin. Two more hide devices from the desktop: the PC floppy controller’s drives, which udisks would list with no disk in them, and the live medium itself |
/etc/skel also carries configuration for third-party programs, so a new account gets a working,
consistently coloured setup rather than each program’s own defaults. These files are yours to edit,
except the ones marked Generated, which kdos theme rewrites.
Many of these programs are not on the installation medium, which carries a base set of
applications. Their files are in every home all the same, so a program you add later with
sudo kdos update install <port> starts already set up. The
ports catalogue lists every port.
| Path | For | Notes |
|---|---|---|
~/.config/btop/btop.conf |
The system monitor btop |
|
~/.config/btop/themes/kdos.theme |
btop’s colours | Generated |
~/.config/kdos/ls-colors |
LS_COLORS, loaded by ~/.bashrc from ${XDG_CONFIG_HOME:-~/.config}/kdos/ls-colors, where kdos theme writes it |
Generated |
~/.config/kdos/fzf-colors |
fzf’s --color flags, sourced by /etc/profile.d/30-kdos-colors.sh |
Generated. See the note on FZF_DEFAULT_OPTS under Shell environment |
~/.config/bat/config |
The pager bat |
One line: --theme="kdos" |
~/.config/bat/themes/kdos.tmTheme |
bat’s theme, selected by file name | Generated |
~/.config/micro/settings.json |
The editor micro |
Selects the generated colour scheme |
~/.config/micro/colorschemes/kdos.micro |
micro’s colour scheme | Generated |
~/.config/helix/themes/kdos.toml |
helix’s theme | Generated. Read by the host’s helix and by a helix installed in a box, which shares this $HOME. Nothing selects it: write theme = "kdos" in helix’s config.toml yourself |
~/.config/nvim/init.vim |
The editor neovim |
Turns on termguicolors and selects the generated colour scheme |
~/.config/nvim/colors/kdos.vim |
neovim’s colour scheme | Generated |
~/.config/git/config |
git | Sets delta as the pager and includes the generated colours |
~/.config/git/kdos-delta |
delta’s colours | Generated |
~/.config/newsboat/config |
The feed reader newsboat |
Includes the generated colours |
~/.config/newsboat/kdos-colors |
newsboat’s colours, as 256-colour indices | Generated |
~/.config/aerc/stylesets/kdos |
aerc’s style set | Generated |
~/.config/tmux/tmux.conf |
The terminal multiplexer tmux |
|
~/.config/tmux/themes/kdos.conf |
tmux’s colours | Generated |
~/.config/starship.toml |
The shell prompt starship |
Only the palette block between its markers is generated; the rest is yours |
~/.config/yazi/theme.toml |
The file manager yazi |
Generated; see below |
~/.config/fastfetch/config.jsonc |
The system-information tool fastfetch |
The login banner runs it with its own logo turned off |
~/.config/lf/lfrc, ~/.config/lf/preview |
The terminal file manager lf |
|
~/.config/GIMP/3.0/gimprc |
GIMP | Selects the system theme; without it GIMP keeps its own |
~/.config/keepassxc/keepassxc.ini |
KeePassXC | Selects the classic theme, so qt5ct’s KDOS palette applies; without it KeePassXC draws its own grey or light style in every accent |
~/.config/fcitx5/profile |
The input method fcitx5 |
Not in /etc/skel: the session writes it at the first login, before KWin starts fcitx5, when the home has none (kdos_session_fcitx5_profile in /usr/local/lib/kdos/session-common.sh). One group, Default, whose Default Layout is the system layout from /etc/kdos/xkb.conf — the first entry of XKBLAYOUT, with the first of XKBVARIANT after a dash, such as de-nodeadkeys; locale1’s layout when the file names none, else us — and the four input methods the image carries: keyboard-<layout>, pinyin, anthy and hangul. With Allow Overriding System XKB Settings on, fcitx5 writes the group’s layout into ~/.config/kxkbrc, so a profile naming another layout would replace the system’s in the session and at the lock screen; /etc/xdg/fcitx5/conf/wayland.conf turns that option off, and the Input Method page can turn it back on. A profile that exists is never rewritten |
~/.config/vlc/vlcrc |
VLC | qt-privacy-ask=0 under [qt], so the first-run privacy dialog never opens, and metadata-network-access=0 under [core], so no album art or track details are fetched, the dialog’s own default. VLC rewrites the file whole, without its comments, when its preferences are saved |
~/.config/mimeapps.list |
Your own choices of which application opens which file type | Ships with an empty [Default Applications] section. This file outranks the system tables, and the Open With dialog’s Remember writes to it |
~/.config/tealdeer/config.toml |
The tldr client tealdeer |
Installed into /etc/skel by the tealdeer package. cache_dir is /usr/share/tldr, where the pages ship, so nothing is downloaded. tldr --update needs a cache_dir you can write |
~/.bashrc, ~/.bash_profile |
bash | .bashrc reads /etc/bash.bashrc — through /run/host inside a box, since $HOME is shared with every box — and kdos/ls-colors under $XDG_CONFIG_HOME (~/.config when unset), the file kdos theme writes. .bash_profile reads .bashrc |
~/.hushlogin |
login |
Empty. Its presence stops login printing /etc/motd and the last-login line, so the banner /etc/bash.bashrc draws is the only one. Deleting it makes each console login print both before that banner |
The standard user directories (Documents, Downloads and the rest) are made at the first login by
xdg-user-dirs, which writes ~/.config/user-dirs.dirs.
Which application opens a file type is decided the same way by Dolphin, every KDE program and
kdos-appbox open (which is also xdg-open), in freedesktop’s order. Inside the session and out,
XDG_CURRENT_DESKTOP is KDE, so the desktop-named lists are kde-mimeapps.list:
| Path | Scope |
|---|---|
~/.config/kde-mimeapps.list, then ~/.config/mimeapps.list |
This account |
/etc/xdg/kde-mimeapps.list, then /etc/xdg/mimeapps.list |
The administrator’s, system-wide |
/usr/share/kdos/xdg/kde-mimeapps.list |
KDOS’s defaults, one line per file type. A line may name several applications, best first: every video type, audio/webm and audio/ac3 read org.kde.haruna.desktop;vlc.desktop;, so they open in Haruna, and in VLC once Haruna is removed; the installation medium carries both |
In each file the [Default Applications] section is read first; the account files’
[Added Associations] are read after the account defaults and before the system tables. The
generated mimeinfo.cache files beside the installed launchers are consulted last. KService and
GLib read [Added Associations] and [Removed Associations] only from a file named
mimeapps.list, never from a kde-mimeapps.list, so a removal KDOS ships goes in
/etc/xdg/mimeapps.list. An entry counts
only while its application is installed, so a list naming a removed application falls through to
the next one. testing/mimecheck.py, which the tree’s preflight check runs, fails when the shipped
list names an application no port installs. Which application each shipped line names is in
Applications.
| Path | Holds |
|---|---|
~/.config/mc/ini |
How mc behaves: the KDOS skin, F3 views internally, F4 edits with $EDITOR, no exit confirmation, and the panel’s directory in the window title |
~/.config/mc/mc.ext.ini |
What Enter does on a file |
~/.config/mc/menu |
mc’s F2 user menu |
In ini the section is part of the key. mc reads its behaviour flags from [Midnight-Commander]
and its screen layout from [Layout], and a key under the wrong header is silently ignored.
kdos theme merges skin into ini rather than replacing the file, and writes the skin itself to
~/.local/share/mc/skins/kdos.ini (mc looks for skins only under <data>/mc/skins,
/etc/mc/skins and /usr/share/mc/skins).
mc.ext.ini replaces the system file entirely, because mc does not merge the two. It carries only
the archive rows whose helper is on the image; every other file falls through to kdos-appbox open.
The F2 menu has nine entries — open with the desktop’s handler, show in Dolphin, edit, find in
this folder, terminal here, add to Places, share, move to trash, and git status — each naming a
program on the image.
A login shell reads these files, and so does the session: kdos-session-wrapper starts Plasma from
a login shell, so every desktop program inherits them. /etc/profile runs first, and it runs every
*.sh file in /etc/profile.d.
| Path | Sets |
|---|---|
/etc/profile |
PATH=/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin, replacing any inherited value; PKG_CONFIG_PATH to the pkgconfig directories under /usr and /usr/local, followed by any value already set; LANG=en_US.UTF-8 when LANG is unset; TERM only when it is empty or dumb (linux on a /dev/ttyN console, vt100 elsewhere); LINES and COLUMNS when unset, to 24 and 80; and USER, LOGNAME and HOME from the account when the login did not set them. In bash it then reads /etc/bash.bashrc (below), before the profile.d files. In any other shell on a terminal it clears the screen and prints /etc/motd after them |
/etc/profile.d/00locale.sh |
MUSL_LOCPATH to /usr/share/i18n/locales/musl, where musl finds translated messages for a non-English LANG. From musl-locales |
/etc/profile.d/10-wayland.sh |
The session basics: HOME from /etc/passwd when it is empty; XDG_RUNTIME_DIR to /run/user/<uid> when unset and that directory exists; XDG_CURRENT_DESKTOP=KDE, KDE_SESSION_VERSION=6 and XDG_MENU_PREFIX=plasma- unless already set, so a console or SSH shell opens files in the applications the desktop does; DBUS_SESSION_BUS_ADDRESS to $XDG_RUNTIME_DIR/bus when that bus exists; the defaults of XDG_DATA_HOME, XDG_CONFIG_HOME, XDG_CACHE_HOME and XDG_DATA_DIRS (not XDG_STATE_HOME, which each program then takes as ~/.local/state); /usr/share/kdos/xdg appended to XDG_CONFIG_DIRS; ~/.local/bin and /usr/games on PATH; the toolkit back ends (QT_QPA_PLATFORM=wayland;xcb, MOZ_ENABLE_WAYLAND=1, SDL_VIDEODRIVER=wayland, CLUTTER_BACKEND=wayland, and no GDK_BACKEND, so GDK tries Wayland first and an application that asks for X11 gets Xwayland); GTK_USE_PORTAL=1, so GTK 3’s native file chooser and print dialog use the KDE portal; and QT_QPA_PLATFORMTHEME=kde, so Qt 6 applications read kdeglobals and Qt 5 applications read the qt5ct files kdos theme writes |
/etc/profile.d/20-lesspipe.sh |
LESSOPEN to lesspipe.sh, and LESS=-R |
/etc/profile.d/20-timezone.sh |
TZ=:/etc/localtime. Written by kdos-settingsd and by the installer; not shipped with the image |
/etc/profile.d/30-kdos-colors.sh |
Sources the generated ~/.config/kdos/fzf-colors and appends its colours to FZF_DEFAULT_OPTS |
/etc/profile.d/30-open.sh |
BROWSER to xdg-open, which on this image is kdos-appbox open, so the variable and the handler tables above agree |
/etc/profile.d/40-plocate.sh |
LOCATE_PATH to this account’s own file index |
/etc/profile.d/45-mpd.sh |
MPD_HOST to $XDG_RUNTIME_DIR/mpd/socket, the socket the mpd user service serves, so mpc, rmpc and ncmpcpp reach the same daemon kdos-mpctl does |
/etc/profile.d/50-ssh-agent.sh |
SSH_AUTH_SOCK to $XDG_RUNTIME_DIR/ssh-agent.socket, once that socket exists; it starts nothing. The ssh-agent user service serves the socket from the account’s first login to its last logout: one agent per account, shared by every login and everything the desktop starts, so ssh-add asks for a passphrase once. From openssh |
/etc/profile.d/50-sfeed.sh |
SFEED_YANKER to wl-copy -n, so sfeed_curses’s yank reaches the clipboard. From sfeed |
/etc/profile.d/50-opencl.sh |
RUSTICL_ENABLE to iris,radeonsi, the Intel and AMD drivers of Mesa’s OpenCL implementation, the mesa-opencl port. Without it Rusticl offers no device and every OpenCL program finds none. llvmpipe is left out, so a machine with no supported GPU has no OpenCL device |
/etc/profile.d/bash_completion.sh |
No variables: in an interactive bash where bash-completion is not yet loaded, loads ~/.config/bash_completion and then bash-completion. In a login bash /etc/bash.bashrc has already loaded it, so this file does nothing there. From bash-completion |
/etc/profile.d/gawk.sh |
No variables: the gawkpath_* and gawklibpath_* functions, which edit AWKPATH and AWKLIBPATH. From gawk |
/etc/profile.d/podman-docker.sh |
DOCKER_HOST to the rootless Podman API socket, $XDG_RUNTIME_DIR/podman/podman.sock (root’s is /run/podman/podman.sock), so a Docker API client such as lazydocker finds podman system service while it runs — see Containers for what starts it. /usr/bin/docker is Podman’s docker shim |
/etc/profile.d/vte.sh |
No variables: in a VTE-based terminal (GNOME Terminal and the like, which set VTE_VERSION), a prompt hook that reports the current directory, so a new tab opens where you are. Nothing in Konsole. From vte3, which also installs vte.csh for csh, a shell this image does not ship |
/etc/profile.d/Z97-byobu.sh |
Starts byobu at login, but only when asked: LC_BYOBU=1, an LC_TERMTYPE naming byobu, or the file /etc/byobu/autolaunch. Otherwise nothing. From byobu |
Some of these set their values unconditionally: /etc/profile (PATH), 00locale.sh,
10-wayland.sh (the toolkit back ends and the platform theme) and 40-plocate.sh
(LOCATE_PATH). 30-kdos-colors.sh appends to whatever FZF_DEFAULT_OPTS holds. None of the
others overwrites a value you already exported. The
less filter decides what a file is with file -L -s -b --mime and nothing else, which is why the
image ships file with a full magic database. Inside Plasma, kdos-session-wrapper then sets
XDG_CURRENT_DESKTOP=KDE and the session’s XDG_CONFIG_DIRS, and removes TERM, LINES,
COLUMNS, QT_IM_MODULE and GTK_IM_MODULE; a variable you want in every Plasma program goes in a
script in ~/.config/plasma-workspace/env/, which Plasma runs after it.
What depends on the terminal is set in every interactive bash instead, in /etc/bash.bashrc, which
guards itself so it runs once per shell. The history settings, the shell options, the aliases that
need no other program, the nano fallback for EDITOR and GPG_TTY are set in every interactive
shell; every other entry first checks that its program is installed:
| Variable or hook | Is |
|---|---|
| History | HISTSIZE=50000, HISTFILESIZE=100000, HISTCONTROL=ignoreboth:erasedups, timestamps (HISTTIMEFORMAT='%F %T '), and history -a after every command, so concurrent shells do not lose each other’s history. ls, ll, la, cd, pwd, exit, clear and history typed alone are not recorded (HISTIGNORE) |
| Shell options | histappend, checkwinsize and cmdhist; autocd (a directory name typed alone changes to it), cdspell and dirspell (small spelling mistakes in a directory name are corrected) |
| Aliases | Colour for grep and diff; -i on cp, mv and rm; -p on mkdir; -h on df, du and free; path prints PATH one directory per line; ports counts the installed packages; .., ... and .... go up one, two and three directories; kfetch, kstatic and khelp for kdos-fetch-app, kdos-fetch-static and kdos help. When their programs are installed: ls, ll, la, lt and l through eza (plain ls with colour otherwise); cat through bat; top through btop; lg for lazygit; dud, dff and psx for dust, duf and procs |
| Prompt | starship when installed, else a plain prompt that names the box inside one. Every prompt emits the OSC 133 marks a terminal uses to find where each command’s output starts and ends |
EDITOR, VISUAL |
nvim when neovim is installed, replacing any exported value (with vi and vim aliased to it). Otherwise an EDITOR you exported is kept, else nano. VISUAL always equals EDITOR |
MANPAGER |
When bat is installed, /usr/libexec/bat/man-pager, from bat: it strips the page’s overstrike and hands it to bat -l man. It is a script rather than a pipeline because mandoc’s man splits the variable on spaces and runs it without a shell. Without bat, and when nothing set it before, less -Ps?e(END):?pB%pB\%..: mandoc hands the pager the page as a temp file, and this prompt shows the position (a percentage, or (END)) in place of that file’s /tmp/man.… name |
BAT_THEME |
ansi |
FZF_DEFAULT_OPTS, FZF_DEFAULT_COMMAND, fzf’s keys |
fzf’s layout and a fixed phosphor-green colour set, and, when fd is installed, fd --type f --hidden --follow --exclude .git as the file source. fzf’s own key bindings (Ctrl+T, Alt+C) and completion are loaded too. The login shell itself runs this file before the profile.d files, so there 30-kdos-colors.sh appends the accent colours afterwards and they win; every shell started after it, such as each terminal window, runs this file again and the assignment replaces them |
GPG_TTY |
This shell’s terminal, where pinentry asks for a passphrase when the session has no display to draw its dialog on |
lfcd |
A function from lf’s lfcd.sh: runs lf and leaves the shell in the directory lf quit in |
j |
zoxide’s jump command |
atuin init bash |
Ctrl+R searches atuin’s history database, and every command is recorded there. The Up arrow stays readline’s. atuin brings its own bash-preexec, which removes ignorespace from HISTCONTROL, so a command typed after a space is recorded too |
| Completion | bash-completion’s programmable completion, outside POSIX mode |
| Banner | In the first shell of a login (SHLVL 1), on a terminal and outside a box: kdos-banner, or fastfetch where that is missing, or /etc/motd where both are |
System-wide files that packages install for the tools above:
| Path | From | Does |
|---|---|---|
/etc/gitconfig |
git-lfs |
Registers the lfs filter, so cloning an LFS repository checks out content rather than pointer files, with no git lfs install |
/etc/nanorc |
nano |
Includes every syntax definition under /usr/share/nano |
/usr/lib/NetworkManager/conf.d/10-kdos-dns.conf |
networkmanager |
dns=dnsmasq: a local caching dnsmasq on 127.0.0.1, with split DNS for VPNs. A file of the same name in /etc/NetworkManager/conf.d overrides it |
/etc/NetworkManager/dnsmasq.d/kdos-mdns.conf |
the base filesystem | server=/local/127.0.0.1#5380: that dnsmasq forwards every .local name to kdos-mdnsd, which asks Avahi. Without it no program but Avahi’s tools and libcups resolves a .local name |
/etc/resolvconf.conf |
openresolv |
resolvconf’s own settings. It is the one writer of /etc/resolv.conf, for NetworkManager, dhcpcd and wg-quick alike |
/etc/resolv.conf |
the base filesystem | Read by musl’s resolver at every name lookup. Before a network is up it names only nameserver 127.0.0.1, where nothing answers until NetworkManager starts its dnsmasq, so an early lookup fails at once and reaches no outside resolver. resolvconf replaces it with the servers of the link that comes up. Its first line, # Generated by resolvconf, is openresolv’s signature: resolvconf refuses to replace a file that does not start with it, and every resolvconf -a then fails |
/etc/sudoers.d/00-sudo |
sudo |
Mode 0440. Members of wheel may run anything. secure_path is /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin, which is what lets sudo kdos find kdos. EDITOR, VISUAL and SUDO_EDITOR survive env_reset, so sudoedit and visudo open your editor; with none of the three set they open nvim, or nano where neovim is not installed |
/etc/zsh/zprofile, /etc/zsh/zshrc |
zsh |
A login zsh reads /etc/profile; every interactive one runs atuin init zsh |
/etc/containers belongs to one package, containers-common, which podman, buildah and
skopeo all depend on, because all three read all of it.
| Path | Sets |
|---|---|
/etc/containers/containers.conf |
cgroupfs as the cgroup manager (there is no systemd to delegate one); the file event logger; crun as the runtime; netavark with the nftables firewall driver; pasta for a rootless container’s network |
/etc/containers/storage.conf |
The overlay driver, mounted through fuse-overlayfs, and no store path: root’s store is the engine’s default, /var/lib/containers/storage, and an ordinary account’s is its own under ~/.local/share/containers/storage. A graphroot or runroot here is read by rootless podman too, which cannot write root’s store, so every rootless container would fail with mkdir /var/lib/containers/storage: permission denied. When an installed system moves an account to the kernel’s own overlay driver is in Storage drivers |
/etc/containers/registries.conf |
docker.io as the one registry a short image name is looked up in |
/etc/containers/policy.json |
Upstream’s default: any image is accepted and no signature is checked. Without this file every pull refuses to start |
A pod’s infra container and podman run --init use catatonit, a static init at
/usr/lib/podman/catatonit. A box profile’s init = yes is not that: it asks distrobox to boot
the image’s own init system.
The Podman API socket starts on demand. Both Containers menu entries — podman-tui and
lazydocker — run through kdos-podman-api. It starts podman system service when nothing answers
on $XDG_RUNTIME_DIR/podman/podman.sock (/run/podman/podman.sock for root), sets DOCKER_HOST to
that socket, and gives podman-tui a default connection named kdos-local through
CONTAINERS_CONF_OVERRIDE. A default connection you set with podman system connection default
takes precedence, and a CONTAINERS_CONF_OVERRIDE you exported yourself is left alone. The service
exits after five minutes with no client.
Typed at a prompt, lazydocker reaches the socket only while a service is running, through the
DOCKER_HOST that podman-docker.sh exports; kdos-podman-api lazydocker starts one first. A bare
podman-tui has no connection at all, running service or not, unless it runs through
kdos-podman-api or you add one with podman system connection add.
| Path | For | Notes |
|---|---|---|
~/.mbsyncrc |
Fetching mail with mbsync |
Mode 600, because it holds a password. Blank lines separate sections, so a commented-out block must keep its blank lines or a Channel ends up inside the Store above it. Ships with no accounts |
~/.msmtprc |
Sending mail with msmtp |
Mode 600: msmtp refuses a file with a password line that others can read (passwordeval avoids the question). /usr/sbin/sendmail and /usr/bin/sendmail are links to msmtp. Ships with no accounts |
~/.config/notmuch/default/config |
The mail index notmuch |
mail_root is relative and expands against $HOME, so one shipped file suits every account. It names ~/Mail, as do the other two files |
~/.config/notmuch/default/hooks/ |
What notmuch new does around the scan |
pre-new fetches with mbsync -a, post-new tags. A failing pre-new stops notmuch new, so a failed fetch is not reported as an empty inbox |
~/.config/khal/config |
The calendar khal |
Active, not commented out: khal with no [calendars] section refuses to start, so it points at a store holding one empty calendar. It uses type = discover over ~/.local/share/calendars/*, so each directory there is a calendar; the image ships one, personal, which khal import writes into, and with none khal has no calendar to import into. The [locale] dates are ISO, which scripts that parse khal’s output depend on |
~/.config/vdirsyncer/config |
Syncing a calendar or address book | Active but with no pair configured: vdirsyncer sync then exits 0 silently and creates nothing. [general] and status_path are the minimum that parses. conflict_resolution has no safe default, and the commented example says so |
~/.config/khard/khard.conf |
The address book khard |
Active for the same reason: khard with no entry exits 3. Its one book is ~/.local/share/addressbooks/personal, outside ~/.local/share/contacts, which Akonadi’s default address book claims. khard list on an empty book prints Found no contacts and exits 1, which means “nothing matched”, not a fault |
~/.config/aerc/aerc.conf |
The mail client aerc: what it shows and how it renders a message part |
Only the keys that differ from aerc’s built-in defaults, plus [filters], which has no defaults behind it and so replaces the whole set |
~/.config/aerc/accounts.conf |
Your mail accounts | Not shipped. aerc refuses to start with one that group or others can read, and every shipped file is mode 644; with no file, aerc’s setup wizard writes it at mode 600 |
~/.config/aerc/binds.conf |
aerc’s keys | Not shipped. aerc’s built-in bindings are empty and this file is the only source, so a partial file would unbind every key it did not name |
Every [filters] row except colorize goes through kdos-part, one script installed in aerc’s
filter directory. Its error output becomes the message body, so a row naming a program that is not
installed shows the shell’s command not found where the message should be. A type with no
[filters] row gets aerc’s No filter configured card.
~/.config/yazi/theme.tomlGenerated by kdos theme; edits are overwritten. It is partial on purpose: yazi layers it over
its own theme-dark.toml preset key by key, so only what the palette decides is written, and the
preset’s icons, separators and file-type rules stay. [flavor] is not written, because it is the
one part the preset splits between dark and light mode.
Dolphin’s Transcribe action and kdos speech transcribe hear with a
whisper.cpp model. Neither whisper.cpp nor a model is on
the installation medium: sudo kdos update install whisper.cpp adds the program, and either
sudo kdos update install whisper-model-base-en, which puts base.en in
/usr/share/whisper.cpp/models/, or kdos speech get adds a model. With no model anywhere,
Dolphin offers no Transcribe entry. There is no configuration key; three locations are searched
in order and the first hit wins.
| Order | Location |
|---|---|
| 1 | $KDOS_WHISPER_MODEL — one file, named exactly |
| 2 | $XDG_DATA_HOME/whisper.cpp/models/, by default ~/.local/share/whisper.cpp/models/ |
| 3 | whisper.cpp/models/ under each system data directory, /usr/share/whisper.cpp/models/ among them |
When $KDOS_WHISPER_MODEL is set it is the only candidate. No directory is searched after it, and a
file that is missing or fails the check below leaves transcription unavailable rather than quietly
using a different model.
In a directory the pattern is ggml-*.bin, and the first in sorted name order wins (not the newest,
so the choice is reproducible).
A file counts only if its first four bytes are lmgg, the model format’s magic, so a half-finished
download reads as no model rather than as a crash.
The directory name is upstream’s own, so a model fetched by upstream’s
models/download-ggml-model.sh and one fetched by KDOS land in the same place.
Getting a model. kdos speech list prints the catalogue of twelve, grouped by size from about
32 MB to about 3.1 GB: tiny.en-q5_1, tiny.en, tiny, base.en-q5_1, base.en, base,
small.en-q5_1, small.en, small, medium.en, large-v3-turbo and large-v3. A name
containing .en is English-only; a -q5_1 suffix marks a quantised, smaller copy of the model
named without it. kdos speech get <name> downloads one into $XDG_DATA_HOME/whisper.cpp/models
(no privilege needed); with no name it gets base.en. It needs whisper.cpp’s whisper-cli, and
says so, naming the install command, before downloading anything. The name is looked up in a table, never
pasted into a URL; the download is checked against a SHA-256 built into the tool, and the file is
moved into place only after both that and the lmgg check pass, so an interrupted download never
leaves a file behind. Upstream signs nothing; the checksum only says the bytes are the ones this
tree was written against (see the security model). See
kdos speech.
whisper-stream, which transcribes a live microphone, uses the same model. It runs in a terminal
and opens no window.
~/.baresip/configThe SIP phone baresip, installed with sudo kdos update install baresip, writes
~/.baresip/config on its first run, and only when the file does not exist, so the defaults below
are what a new account gets and an edited file is never overwritten.
Five module lines that upstream leaves commented are uncommented, because the baresip port builds
those modules: opus.so, avcodec.so, vp8.so, vp9.so and sdl.so. (A line naming a module that is
not installed is a startup error, which is why upstream comments them all.)
The audio module is pipewire.so; alsa.so is written commented out. The build sets baresip’s
default audio device to pipewire,default, so audio_player, audio_source and audio_alert all
name the PipeWire default and a call goes straight to PipeWire. sndfile.so (call recording),
snapshot.so and ctrl_dbus.so are built and left commented as upstream writes them; the aac.so
codec is built and not mentioned in the generated file.
The display is on and the camera is off: which screen a picture goes to is a property of the build,
while sending your camera is a choice. Uncommenting v4l2.so turns the camera on; the generated
video_source line already names v4l2,/dev/video0. avformat.so is the other video source, for a
stream or file named in video_source. x11.so is not built. fakevideo.so (a null sink) and
vidbridge.so (a loopback) stay commented.
kdos theme rewrites all of these whenever the accent or style changes, and seeds them into
/etc/skel when the image is built. Your edits are lost at the next change.
| Path | Read by |
|---|---|
~/.config/btop/themes/kdos.theme |
btop |
~/.config/tmux/themes/kdos.conf |
tmux |
~/.config/kdos/ls-colors, ~/.config/kdos/fzf-colors |
ls and fzf |
~/.config/bat/themes/kdos.tmTheme, ~/.config/micro/colorschemes/kdos.micro, ~/.config/nvim/colors/kdos.vim, ~/.config/helix/themes/kdos.toml |
The pager and editors |
~/.config/git/kdos-delta, ~/.config/newsboat/kdos-colors, ~/.config/aerc/stylesets/kdos, ~/.config/yazi/theme.toml |
delta, newsboat, aerc and yazi |
~/.local/share/mc/skins/kdos.ini, and the skin key in ~/.config/mc/ini |
Midnight Commander |
The palette block in ~/.config/starship.toml |
The shell prompt, between its markers. The rest of the file is yours |
~/.config/qt5ct/qt5ct.conf |
Qt 5 programs. Merged: while color_scheme_path names a KDOS palette or none, the theme sets color_scheme_path, custom_palette, style, standard_dialogs (xdgdesktopportal, KDE’s dialog through the portal) and icon_theme under [Appearance] and general and fixed under [Fonts], and your other settings in it survive |
Plasma’s own half of an accent is not generated here. Every colour scheme, Konsole profile, qt5ct
palette, wallpaper and global theme was generated when the image was built, by kdos-theme and
kdos-plasma-look, and kdos theme chooses among them: it applies the global theme, the colour
scheme, the wallpaper and the Konsole profile through Plasma’s own settings, and moves each only
while it still names a KDOS file, so a wallpaper or profile you chose is left as it is.
kdos theme --audit reports any of the generated files that differ from what this machine’s
palette produces. See kdos theme and
Theming.
kdos command — kdos theme, kdos phosphor,
kdos toggle, kdos update, kdos sandboxkpkg, the binhost and the ports tree behind
kpkg.conf and update.conffs/ overlay that carries
the shipped defaults in this chapter reaches the imagePart VI — Reference, chapter 40. Previous: 39. Command index · Contents · Next: 41. Filesystem and IPC