Skip to content

Commit

Permalink
Merge pull request #325 from hartwork/issue-323-document-expected-qem…
Browse files Browse the repository at this point in the history
…u-display-types

Document expected QEMU display types (fixes #323)
  • Loading branch information
hartwork authored Sep 23, 2024
2 parents ce5c1cb + 743f843 commit 707762a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ To install from a Git clone _for development_:

Please make sure to install these _non-PyPI dependencies_ as well:
- `grub-mkrescue` of [GRUB 2](https://www.gnu.org/software/grub/) (package `grub-common` on Debian and Ubuntu)
- [QEMU](https://wiki.qemu.org/Main_Page)_hypervisor that performs hardware virtualization_
- [QEMU](https://wiki.qemu.org/Main_Page) (with GTK or SDL display support) _hypervisor that performs hardware virtualization_
- [OVMF](https://github.com/tianocore/tianocore.github.io/wiki/OVMF) — EFI bios image for use with QEMU
- [mtools](https://www.gnu.org/software/mtools/)_collection of utilities to access MS-DOS_
- `xorriso` of [libisoburn](https://dev.lovelyhq.com/libburnia/libisoburn)_frontend which enables creation and expansion of the ISO format_
Expand All @@ -42,20 +42,21 @@ Please make sure to install these _non-PyPI dependencies_ as well:
## Usage

```console
# grub2-theme-preview --help
# COLUMNS=80 grub2-theme-preview --help
usage: grub2-theme-preview [-h] [--grub-cfg PATH] [--verbose]
[--resolution WxH] [--timeout SECONDS]
[--add TARGET=/SOURCE] [--version]
[--grub2-mkrescue COMMAND] [--qemu COMMAND]
[--xorriso COMMAND] [--no-kvm] [--debug]
[--xorriso COMMAND] [--display DISPLAY]
[--full-screen] [--no-kvm] [--vga CARD] [--debug]
[--plain-rescue-image]
PATH

positional arguments:
PATH path of theme directory (or PNG/TGA image file) to
preview

optional arguments:
options:
-h, --help show this help message and exit
--grub-cfg PATH path of custom grub.cfg file to use (default:
/boot/grub{2,}/grub.cfg)
Expand All @@ -76,7 +77,8 @@ command location arguments:

arguments related to invokation of QEMU/KVM:
--display DISPLAY pass "-display DISPLAY" to QEMU, see "man qemu" for
details (default: use QEMU's default display)
details (default: use QEMU's default display,
hopefully either GTK or SDL)
--full-screen pass "-full-screen" to QEMU
--no-kvm do not pass -enable-kvm to QEMU (and hence fall back
to acceleration "tcg" which is significantly slower
Expand Down
2 changes: 1 addition & 1 deletion grub2_theme_preview/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def parse_command_line(argv):
dest='qemu_display',
metavar='DISPLAY',
help='pass "-display DISPLAY" to QEMU, see "man qemu" for details'
' (default: use QEMU\'s default display)')
' (default: use QEMU\'s default display, hopefully either GTK or SDL)')

qemu.add_argument('--full-screen',
dest='qemu_full_screen',
Expand Down

0 comments on commit 707762a

Please sign in to comment.