mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
22 lines
516 B
QML
22 lines
516 B
QML
import QtQuick
|
|
import Quickshell
|
|
import qs.Commons
|
|
|
|
QtObject {
|
|
id: root
|
|
|
|
function migrate(adapter, logger, rawJson) {
|
|
logger.i("Migration46", "Removing legacy PAM configuration file");
|
|
|
|
const configDir = Settings.configDir;
|
|
const pamConfigDir = configDir + "pam";
|
|
// Remove the entire pam directory if it exists
|
|
const script = `rm -rf '${pamConfigDir}'`;
|
|
Quickshell.execDetached(["sh", "-c", script]);
|
|
|
|
logger.d("Migration46", "Cleaned up legacy PAM config");
|
|
|
|
return true;
|
|
}
|
|
}
|