### Bug description

On Fedora 38, when setting `dev: svg` with the pdf format, the svg generated from rendering has size 0, and throws an error at the `rsvg-convert` step:

```
Error reading SVG test_files/figure-pdf/unnamed-chunk-1-1.svg: XML parse error: Input file is too short
ERROR: Failed when attempting to convert a SVG to a PDF for output.
 An error occurred while attempting to run rsvg-convert.
Error code 1
```

The generated svg file in `_files/figure-pdf/unnamed-chunk-1-1.svg` is empty. 



### Steps to reproduce

test.qmd:
````
---
format: pdf
---

```{r}
#| dev: svg
plot(cars)
```
````

### Expected behavior

Should generate a valid svg file, which is then converted to pdf and put in `_files/mediabag`

### Actual behavior

Produces an empty svg file and an error.

### Your environment

- IDE: NVim v0.10.0
- OS: Fedora 38

This does not occur on Ubuntu, and replicates on a clean Fedora installation.

### Quarto check output

[✓] Checking Quarto installation......OK
      Version: 99.9.9
      Path: /home/wojtek/bin/quarto-cli/package/dist/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.11.3
      Path: /usr/bin/python3
      Jupyter: 5.3.0
      Kernels: python3, octave, julia-1.9

(/) Checking Jupyter engine render....0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.3.0
      Path: /opt/R/4.3.0/lib64/R
      LibPaths:
        - /home/wojtek/R/x86_64-pc-linux-gnu-library/4.3
        - /opt/R/4.3.0/lib64/R/library
      rmarkdown: 2.22

[✓] Checking Knitr engine render......OK

mcanouil
2023-06-16T18:05:28Z
wklimowicz
latex
closed
Fedora 38: SVG device breaks PDF format
https://github.com/quarto-dev/quarto-cli/issues/5950