This commit is contained in:
2024-12-21 20:59:27 +01:00
parent 3ef9667275
commit 273ae06d44
2 changed files with 41 additions and 3 deletions

View File

@@ -1,9 +1,21 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=Boot to Windows
Categories=Utility;System;
Comment[de_DE]=Bootet direkt nach Windows oder setzt den GRUB-Boot-Eintrag
Comment=Bootet direkt nach Windows oder setzt den GRUB-Boot-Eintrag
Exec=pkexec /home/thorsten/Scripte/shell_boot-to-windows/boot-to-windows.sh
GenericName[de_DE]=
GenericName=
Icon=/home/thorsten/Scripte/shell_boot-to-windows/boot-to-windows.png
MimeType=
Name[de_DE]=Boot to Windows
Name=Boot to Windows
Path=
PrefersNonDefaultGPU=false
StartupNotify=true
Terminal=true
TerminalOptions=
Type=Application
Categories=Utility;System;
Version=1.0
X-KDE-SubstituteUID=false
X-KDE-Username=

26
README.md Normal file
View File

@@ -0,0 +1,26 @@
# GRUB Boot zu Windows
Dieses Skript identifiziert dynamisch den **Windows-Boot-Manager** in der **GRUB-Konfiguration** und setzt ihn für den nächsten Neustart als Ziel. Es unterstützt sowohl **GRUB** als auch **GRUB2** und ermöglicht eine optionale Benutzerabfrage, ob das System sofort nach Windows booten soll.
## Voraussetzungen
- **Bash** ist installiert.
- GRUB oder GRUB2 ist konfiguriert.
- Das Skript erfordert Berechtigungen zum Bearbeiten der GRUB-Konfigurationsdateien und zum Neustarten des Systems. (sudo)
## Verwendung
1. Script ausführbar machen:
```bash
chmod +x boot-to-windows.sh
```
2. Bearbeite die Datei `Boot to Windows.desktop` und passe die Zeilen `Exec=` und `Icon=` entsprechend deiner Skript- und Icon-Pfade an.
3. Speichere die angepasste `Boot to Windows.desktop`-Datei wahlweise in:
```bash
~/.local/share/applications/
```
Alternativ kann das Skript direkt im Terminal ausgeführt werden:
```bash
sudo ./boot-to-windows.sh
```