KDE Plasma Autostart-on-Login

KLookup provides an in-app preference under General Settings: "Start KLookup when logging in".

Integration Architecture

  1. Standards-compliant XDG Autostart:
  2. Manages a per-user desktop entry at ~/.config/autostart/org.kde.klookup.desktop (resolved dynamically via QStandardPaths::GenericConfigLocation).
  3. Reuses the canonical application identity org.kde.klookup and single-instance D-Bus registration.

  4. Startup Visibility Policy:

  5. The desktop entry specifies Exec=klookup --background.
  6. Starting in background registers the D-Bus service and system tray icon without opening, raising, or focusing the main search window.
  7. Users are not interrupted at login by unexpected focus stealing or window popups.
  8. KWallet is never opened on login; credential restoration is deferred to explicit user interaction.
  9. Clipboard searches are not triggered automatically on login.

  10. External and Administrator Configuration Preservation:

  11. If configured externally (e.g., via KDE Plasma System Settings Autostart KCM or GNOME Tweaks), the in-app checkbox accurately reflects the effective status.
  12. Enabling or disabling autostart updates Hidden=false / Hidden=true and X-GNOME-Autostart-enabled=true / false.
  13. Any custom desktop entry keys, comments, or locale translations previously written by the user or external tools are preserved.