Guide pages

Troubleshooting

The taskbar did not come back

Katofli hides the system taskbar while it runs and puts it back when it exits. If the taskbar is missing, try these in order:

  1. Press Ctrl+Alt+Win+K, the emergency quit key. Katofli quits the normal way and restores the taskbar. It works even when the bar is frozen; if Katofli is stuck, it restores the taskbar and ends Katofli after about 5 seconds.
  2. Start Katofli again and quit it from the bar menu (Exit Katofli (restore the system taskbar)). Each start first repairs anything a crashed run left behind.
  3. Run --restore-shell from a terminal. In PowerShell: & "$env:LOCALAPPDATA\Katofli\katofli.exe" --restore-shell. In Command Prompt: "%LOCALAPPDATA%\Katofli\katofli.exe" --restore-shell. A portable copy uses the folder it was unzipped to (.\katofli.exe --restore-shell from that folder). It shows every system taskbar, puts back your own auto-hide setting, and exits without starting the bar.
  4. By hand: turn off "Automatically hide the taskbar" in the system's taskbar settings, or sign out and in again.

What restores the taskbar on its own

  • A clean exit (the bar menu, the emergency quit key, an update or an uninstall).
  • A crash: Katofli puts the taskbar back as it fails.
  • A hard kill (taskkill /F, Task Manager): a small watchdog copy of katofli.exe waits for Katofli to end and restores the taskbar. It runs only while Katofli replaces the taskbar.
  • The next start, which repairs anything a dead run left behind.

--restore-shell for scripts

--restore-shell refuses while the Katofli that hid the taskbar is still running, or when that cannot be determined (the process cannot be queried or the record cannot be read). Add --force to restore anyway.

Release builds are window programs, so PowerShell does not wait for them and $LASTEXITCODE is not set. Wait for the exit code explicitly:

$exe = "$env:LOCALAPPDATA\Katofli\katofli.exe"
$p = Start-Process $exe -ArgumentList '--restore-shell' -Wait -PassThru
$p.ExitCode
# or: & $exe --restore-shell | Out-Null; $LASTEXITCODE
Exit code Meaning
0 Restored: taskbar shown and your auto-hide setting confirmed
1 Incomplete (no taskbar found, or Explorer did not confirm the setting); the saved files are kept so the next start or another --restore-shell can finish
2 Bad arguments, or no config folder
3 Katofli is (or may be) still running; stop it first or pass --force
4 Nothing restored: another Katofli process held the guard lock, started meanwhile, or the record became unreadable
5 Explorer did not answer within 2 s

The watchdog runs as katofli.exe --shell-watchdog <pid> <created> and exits as soon as the Katofli process it watches has gone. Stopping every katofli process by name stops it too, so a script that does that should run --restore-shell afterwards.

Peek at the system taskbar

To see the system taskbar without quitting, right-click the bar and choose Peek the system taskbar. It shows beside Katofli until you choose it again, exit or restart.

Katofli stopped at start: the crash notice and safe start

If Katofli crashes, its helper process puts the taskbar back and shows one message.

  • A crash within 30 seconds of starting shows "Katofli stopped unexpectedly a few seconds after starting" with Yes and No. Yes starts Katofli once in safe mode.
  • A crash later in a run shows a plain message with OK.
  • After two start crashes in a row, the next start is a safe start by itself, and says so.
  • Nothing restarts Katofli on its own, so it can never loop.

Safe mode leaves out the parts that run other programs' code inside Katofli: system app icons (tiles show plain glyphs), other apps' status icons, plugins, desktop widgets and the first-start import of taskbar pins. Your settings are not changed.

  • To ask for a safe start yourself, run & "$env:LOCALAPPDATA\Katofli\katofli.exe" --safe-start in PowerShell (a portable copy: .\katofli.exe --safe-start from its folder).
  • To leave safe mode, quit Katofli and start it again.

A common cause of a start crash is a third-party shell extension. The message does not name the program at fault; the system's reliability history does.

If Katofli's window could not be shown three times within a minute, it stops, puts the taskbar back and says that its window could not be shown.

"The WebView2 Runtime is missing"

Katofli draws its bars with the Microsoft Edge WebView2 Runtime. If it cannot find a usable one, it shows "Katofli cannot start: the WebView2 Runtime it needs is missing or cannot be used on this PC." and exits. The taskbar is left alone and no safe start is offered.

To fix it, connect to the internet and run the Katofli setup again, or install the WebView2 Runtime from its publisher's website. The setup itself reports the same problem when it cannot install the runtime.

The bar does not start

  • Another Katofli already runs. A second copy exits at start. Look for the bar on another display, or end katofli.exe in Task Manager and start it again.
  • An older build runs. Katofli refuses to start while a startbar.exe from before the rename runs, and says so. Quit the older build first.
  • It runs beside the system taskbar. If Katofli cannot set up its taskbar watchdog, it runs as a plain bar next to the system taskbar and leaves the taskbar alone. Restart Katofli; if it keeps happening, check that Replace the system taskbar is on in Settings → System → Startup & shell.
  • The setup refused to run. It does not run as administrator. Run it again normally.

A module shows nothing

Module Why it can be empty
Status icons Off until you turn on Settings → Modules → Status icons → Show other apps' status icons. Off in safe mode.
Weather Needs a location: Settings → Modules → Weather.
Privacy indicator Shows only while an app uses the microphone, camera, screen capture or location.
Battery Hidden on PCs without a battery, and while plugged in and full if Hide when plugged in and full is on.
Media widget Shows only while an app reports what it plays; it can hide after a pause (Hide when paused).
Game bar Scans nothing until the module is on; check Sources on its page.
Widgets, Touch keyboard Hidden when the system has no widgets board or touch keyboard.
Virtual desktops Shows the desktops only; switching needs Use the shell's private desktop API. Turned off by itself after a crash.
Plugin chips Off in safe mode; the chip's tooltip says why a plugin is not running.

Also check that the module is on and on this bar: Settings → Modules → On the bar, or the bar's own Modules tab. A display with its own module list (Settings → Layout → Main bar → Displays) does not use the global list.

Where your files are

What Installed copy Portable copy
Settings (config.toml) %APPDATA%\katofli\ data\config\
Caches %LOCALAPPDATA%\com.presdec.katofli\cache\ data\cache\
Logs folder %LOCALAPPDATA%\com.presdec.katofli\logs\ data\logs\
Taskbar recovery record %APPDATA%\katofli\ %APPDATA%\katofli\

To open them from Settings:

  • Settings → System → Config file & reset → Open config.toml or Open logs folder.
  • Settings → System → Startup & shell → Data folder → Open folder.

The logs folder holds:

  • katofli.log: what the current run logged. Each start begins a new file; katofli.1.log holds earlier output, usually the run before, and katofli.2.log and katofli.3.log older output still. A file is started over at 2 MB, so the folder holds about 8 MB of these. If another program keeps katofli.log open, Katofli adds to it instead and stops writing at 4 MB, so up to one extra file's worth (2 MB).
  • watchdog.log: how each run ended (exit code, how long it ran), written by the small helper that brings the taskbar back after a crash. Capped at 256 KB, plus one older file.
  • perf.log, while [debug] perf-log = true is set in config.toml.

The logs stay on your PC; Katofli never sends them. Paths inside your user folder are shown as %USERPROFILE%. The log can still contain other details, such as device names, web addresses Katofli blocked and paths outside your user folder, so look through it before you share it. A copy that cannot write to its folder (a read-only portable drive) starts as usual and keeps no log. Set the RUST_LOG environment variable (for example RUST_LOG=debug) before starting Katofli for more detail, or RUST_LOG=off for none.

Reset settings

  • One page: Reset to defaults at the top of a Settings page puts that page back and leaves everything else in your config alone.
  • Everything: Settings → System → Config file & reset → Factory reset. It overwrites your config with defaults: pins, theme and every change are wiped. There is no undo, so copy config.toml somewhere first if you may want it back.

Caches, logs and the taskbar recovery record are not touched by either.

Report a bug

Open an issue at https://github.com/presdec/katofli-releases/issues. For a security problem, follow SECURITY.md instead.

Include:

  • The version: Settings → System → Updates shows "Installed version", and About shows it too.
  • Your system: the system version, how many displays and their scaling, and the bar's edge.
  • What happened and how to make it happen again, step by step.
  • The theme and variant, if it looks wrong.
  • A screenshot, if it shows on screen. Turn on Streaming mode first (Settings → System → Performance & modes) if personal details are visible.
  • Your config.toml, if a setting is involved. Remove anything private first: weather locations hold coordinates, and paths can hold your user name.
  • Whether it happens in safe mode (started with --safe-start).
  • The log: katofli.log from the logs folder (see Where your files are). After a crash, attach katofli.1.log too (usually the run that crashed, if you started Katofli again since) and watchdog.log. Look through them first: device names, web addresses Katofli blocked and paths outside your user folder can appear in them.