1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 23:42:51 -05:00

meta: support async launcher plugins, cached GIFs, paste on launcher v2

action
- Preparations for DankGifSearch plugin
This commit is contained in:
bbedward
2026-01-23 12:02:12 -05:00
parent 808ee66e11
commit 972fc534a4
8 changed files with 141 additions and 34 deletions

View File

@@ -855,6 +855,21 @@ Singleton {
return false;
}
function getPluginPasteText(pluginId, item) {
if (typeof PluginService === "undefined")
return null;
const instance = PluginService.pluginInstances[pluginId];
if (!instance)
return null;
if (typeof instance.getPasteText === "function") {
return instance.getPasteText(item);
}
return null;
}
function searchPluginItems(query) {
if (typeof PluginService === "undefined")
return [];

View File

@@ -592,6 +592,13 @@ Singleton {
return SettingsData.getPluginSetting(pluginId, key, defaultValue);
}
function getPluginPath(pluginId) {
const plugin = availablePlugins[pluginId];
if (!plugin)
return "";
return plugin.pluginDirectory || "";
}
function saveAllPluginSettings() {
SettingsData.savePluginSettings();
}

View File

@@ -29,6 +29,7 @@ Singleton {
}
property bool loginctlAvailable: false
property bool wtypeAvailable: false
property string sessionId: ""
property string sessionPath: ""
property bool locked: false
@@ -59,6 +60,7 @@ Singleton {
detectElogindProcess.running = true;
detectHibernateProcess.running = true;
detectPrimeRunProcess.running = true;
detectWtypeProcess.running = true;
console.info("SessionService: Native inhibitor available:", nativeInhibitorAvailable);
if (!SettingsData.loginctlLockIntegration) {
console.log("SessionService: loginctl lock integration disabled by user");
@@ -124,6 +126,15 @@ Singleton {
}
}
Process {
id: detectWtypeProcess
running: false
command: ["which", "wtype"]
onExited: exitCode => {
wtypeAvailable = (exitCode === 0);
}
}
Process {
id: detectPrimeRunProcess
running: false