feat: add time zone configuration applet to System Configuration

This commit is contained in:
2026-04-24 16:37:17 +02:00
parent b4bb2932cf
commit b4be0fcc0f
17 changed files with 1404 additions and 471 deletions
@@ -0,0 +1,28 @@
/*
* libtimezonesapplet.cpp
* Shared desktop applet that launches the Time Zone configuration tool
* Copyright (c) 2026 Daniel Hammer
*/
#include <gui/desktop_applet.hpp>
#include <montauk/syscall.h>
using gui::desktop_applet::Descriptor;
using gui::desktop_applet::Host;
static constexpr Descriptor kAppletDescriptor = {
gui::desktop_applet::ABI_VERSION,
gui::desktop_applet::CAP_SYSTEM_CONFIGURATION,
"timezone",
"Time Zone",
"0:/icons/preferences-system-time.svg",
};
extern "C" const Descriptor* desktop_applet_query_v1() {
return &kAppletDescriptor;
}
extern "C" bool desktop_applet_open_v1(const Host* host) {
(void)host;
return montauk::spawn("0:/apps/timezone/timezone.elf") >= 0;
}