Skip to content

Commit

Permalink
Merge pull request #7 from fehlix/master
Browse files Browse the repository at this point in the history
enable GRUB_TIMEOUT change even if not set in /etc/default/grub
  • Loading branch information
AdrianTM authored Oct 16, 2024
2 parents ca4db5a + 0a10805 commit 4762649
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
mx-boot-options (24.9+dev) mx; urgency=medium

* Fix: enable grub-timeout to be changed, even if GRUB_TIMEOUT does
not exist within /etc/default/grub

-- fehlix <[email protected]> Wed, 16 Oct 2024 17:17:50 -0400

mx-boot-options (24.9) mx; urgency=medium

* When running Live prompt to change live boot options or chroot to an installed system
Expand Down
4 changes: 3 additions & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,9 @@ void MainWindow::pushApply_clicked()
disableGrubLine("GRUB_SAVEDEFAULT=true");
}

replaceGrubArg("GRUB_TIMEOUT", QString::number(ui->spinBoxTimeout->value()));
if (!replaceGrubArg("GRUB_TIMEOUT", QString::number(ui->spinBoxTimeout->value()))) {
addGrubLine("GRUB_TIMEOUT=" + QString::number(ui->spinBoxTimeout->value()));
}
}

if (splash_changed) {
Expand Down

0 comments on commit 4762649

Please sign in to comment.