⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

parse_desktop_file

Function parse_desktop_file 

Source
pub fn parse_desktop_file(content: &str) -> Option<AppEntry>
Expand description

Parse a freedesktop .desktop file and extract an AppEntry.

Supports the [Desktop Entry] section and the following keys:

  • Name= – application name
  • Exec= – executable path (first token only, %f/%u/%F/%U stripped)
  • Icon= – icon name
  • Comment= – short description
  • Categories= – semicolon-separated category list (first recognized category is used)

Returns None if Name or Exec is missing.