Initial commit of the Quickshell desktop suite: bar, dock, launcher, settings, Control Center, dashboard, OSD, lock screen, desktop widgets, plugin host with the vendored Noctalia/Omarchy compatibility layer, helpers, packaging, tests and phase documentation. Includes the optimization work so far: usage widgets and dashboard gauges no longer animate continuously, desktop widgets pause while covered, system controls stop flickering on background polls, dock app matching uses an indexed catalog, and workspace ghosts are created only for occupied slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
851 B
QML
30 lines
851 B
QML
import QtQuick
|
|
import Quickshell
|
|
import qs.compat.noctalia.Commons
|
|
|
|
QtObject {
|
|
id: root
|
|
|
|
// Clear legacy emoji usage cache to adopt new format
|
|
function migrate(adapter, logger, rawJson) {
|
|
logger.i("Settings", "Migrating settings to v36");
|
|
|
|
const usagePath = Settings.cacheDir + "emoji_usage.json";
|
|
|
|
if (!usagePath.endsWith("emoji_usage.json")) {
|
|
logger.w("Settings", "Skipping emoji usage cleanup due to unexpected path: " + usagePath);
|
|
return true;
|
|
}
|
|
|
|
try {
|
|
// Ensure dir exists then remove the file
|
|
Quickshell.execDetached(["sh", "-c", `mkdir -p "${Settings.cacheDir}" && rm -f -- "${usagePath}"`]);
|
|
logger.i("Settings", "Cleared legacy emoji usage file at: " + usagePath);
|
|
} catch (e) {
|
|
logger.w("Settings", "Failed to clear emoji usage cache: " + e);
|
|
}
|
|
|
|
return true;
|
|
}
|
|
}
|