From 70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69 Mon Sep 17 00:00:00 2001 From: AlexanderCurl Date: Sat, 18 Apr 2026 17:46:06 +0100 Subject: Replaced file structures for themes in the correct format --- .../ShutdownTimer@deminder/modules/install.js | 64 ---------------------- 1 file changed, 64 deletions(-) delete mode 100644 raveos-theme/gnome/theme-data/extensions/installed/ShutdownTimer@deminder/modules/install.js (limited to 'raveos-theme/gnome/theme-data/extensions/installed/ShutdownTimer@deminder/modules/install.js') diff --git a/raveos-theme/gnome/theme-data/extensions/installed/ShutdownTimer@deminder/modules/install.js b/raveos-theme/gnome/theme-data/extensions/installed/ShutdownTimer@deminder/modules/install.js deleted file mode 100644 index 701da6a..0000000 --- a/raveos-theme/gnome/theme-data/extensions/installed/ShutdownTimer@deminder/modules/install.js +++ /dev/null @@ -1,64 +0,0 @@ -// SPDX-FileCopyrightText: 2023 Deminder -// SPDX-License-Identifier: GPL-3.0-or-later - -import GLib from 'gi://GLib'; -import Gio from 'gi://Gio'; -import { gettext as _ } from './translation.js'; - -import { execCheck, installedScriptPath } from '../dbus-service/control.js'; -import { logDebug } from './util.js'; - -export class Install { - destroy() { - if (this.installCancel !== undefined) { - this.installCancel.cancel(); - } - this.installCancel = undefined; - } - - /** - * @param installerScriptPath - * @param action - * @param logInstall - */ - async installAction(installerScriptPath, action, logInstall) { - const label = this.actionLabel(action); - if (this.installCancel !== undefined) { - logDebug(`Trigger cancel install. ${label}`); - this.installCancel.cancel(); - } else { - logDebug(`Trigger ${action} action.`); - this.installCancel = new Gio.Cancellable(); - logInstall(`[${_('START')} ${label}]`); - try { - const user = GLib.get_user_name(); - logDebug(`? installer.sh --tool-user ${user} ${action}`); - await execCheck( - ['pkexec', installerScriptPath, '--tool-user', user, action], - this.installCancel, - false, - logInstall - ); - logInstall(`[${_('END')} ${label}]`); - } catch (err) { - logInstall(`[${_('FAIL')} ${label}]\n# ${err}`); - console.error(err, 'InstallError'); - } finally { - this.installCancel = undefined; - } - } - } - - checkInstalled() { - const scriptPath = installedScriptPath(); - const isScriptInstalled = scriptPath !== null; - if (isScriptInstalled) { - logDebug(`Existing installation at: ${scriptPath}`); - } - return isScriptInstalled; - } - - actionLabel(action) { - return { install: _('install'), uninstall: _('uninstall') }[action]; - } -} -- cgit v1.3