diff options
| author | Nippy <nippy@rp1.hu> | 2026-06-01 18:57:29 +0200 |
|---|---|---|
| committer | Nippy <nippy@rp1.hu> | 2026-06-01 18:57:29 +0200 |
| commit | 2e5a7d93476c0819b5a23f5740e4c843eaedc73a (patch) | |
| tree | 84279c63b84126eb8f6d9d94a42c44aabbe22336 /raveos-gnome-theme/theme-data/extensions/installed/customreboot@nova1545/grub.js | |
| parent | e1f0fac166056bb106284be4a3fec0c558525927 (diff) | |
| download | RaveOS-PKGBUILD-2e5a7d93476c0819b5a23f5740e4c843eaedc73a.tar.gz RaveOS-PKGBUILD-2e5a7d93476c0819b5a23f5740e4c843eaedc73a.zip | |
Raveos gnome update
Diffstat (limited to 'raveos-gnome-theme/theme-data/extensions/installed/customreboot@nova1545/grub.js')
| -rw-r--r-- | raveos-gnome-theme/theme-data/extensions/installed/customreboot@nova1545/grub.js | 6 |
1 files changed, 2 insertions, 4 deletions
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 |