mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
22 lines
588 B
QML
22 lines
588 B
QML
import QtQuick
|
|
import Quickshell
|
|
import qs.Commons
|
|
|
|
QtObject {
|
|
id: root
|
|
|
|
function migrate(adapter, logger, rawJson) {
|
|
logger.i("Settings", "Migrating settings to v56 (Color Scheme Migration)");
|
|
|
|
const scriptPath = Quickshell.shellDir + "/Scripts/python/src/theming/migrate-colorschemes.py";
|
|
const configDir = Settings.configDir;
|
|
|
|
logger.i("Settings", `Running color scheme migration script: ${scriptPath} with configDir: ${configDir}`);
|
|
|
|
// Run the migration script detached
|
|
Quickshell.execDetached(["python3", scriptPath, configDir]);
|
|
|
|
return true;
|
|
}
|
|
}
|