From 2e5a7d93476c0819b5a23f5740e4c843eaedc73a Mon Sep 17 00:00:00 2001 From: Nippy Date: Mon, 1 Jun 2026 18:57:29 +0200 Subject: Raveos gnome update --- .../theme-data/extensions/installed/customreboot@nova1545/grub.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'raveos-gnome-theme/theme-data/extensions/installed/customreboot@nova1545/grub.js') diff --git a/raveos-gnome-theme/theme-data/extensions/installed/customreboot@nova1545/grub.js b/raveos-gnome-theme/theme-data/extensions/installed/customreboot@nova1545/grub.js index 6d67ff0..21b072a 100644 --- a/raveos-gnome-theme/theme-data/extensions/installed/customreboot@nova1545/grub.js +++ b/raveos-gnome-theme/theme-data/extensions/installed/customreboot@nova1545/grub.js @@ -54,7 +54,6 @@ export class Grub { if (defualtEn == "") defualtEn = bootOptions.keys().next().value; return [bootOptions, defualtEn]; - } catch (e) { LogWarning(e); return undefined; @@ -110,13 +109,13 @@ export class Grub { * Copies a custom grub script to allow the extension to quickly reboot into another OS * If anyone reads this: Idk how to combine these into one pkexec call, if you do please leave a commit fixing it */ - static async EnableQuickReboot(ext) { + static async EnableQuickReboot(extension) { try { let [status, stdout, stderr] = await ExecCommand([ 'pkexec', 'sh', '-c', - `/usr/bin/cp ${ext.lookupByUUID('customreboot@nova1545').path()}/42_custom_reboot /etc/grub.d/42_custom_reboot && /usr/bin/chmod 755 /etc/grub.d/42_custom_reboot && /usr/sbin/update-grub` + `/usr/bin/cp ${extension.metadata.path}/42_custom_reboot /etc/grub.d/42_custom_reboot && /usr/bin/chmod 755 /etc/grub.d/42_custom_reboot && /usr/sbin/update-grub` ]); if (status !== 0) { @@ -130,7 +129,6 @@ export class Grub { return false; } } - /** * Removes the script used to allow the extension to quickly reboot into another OS without waiting for grub's timeout -- cgit v1.3