Skip to content

Commit

Permalink
Update doc for desktop integration and rendering backend (#1703)
Browse files Browse the repository at this point in the history
Update documentation to reflect changes in headless version and desktop integration

Co-authored-by: Michael MIGLIORE <[email protected]>
Co-authored-by: Mathieu Westphal <[email protected]>
  • Loading branch information
3 people authored Nov 15, 2024
1 parent c64e444 commit ca4a69f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
16 changes: 15 additions & 1 deletion doc/user/DESKTOP_INTEGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,21 @@ sudo update-mime-database ~/.local/share/mime/
sudo update-desktop-database ~/.local/share/applications
```

If you have any issues, refer to the [troubleshooting](LIMITATIONS_AND_TROUBLESHOOTING.md) part.
F3D supports rendering in environments with limited graphical contexts, including sandboxes or without Xorg running. In most cases, the default behavior will automatically detect which capabilities are available and use the right rendering backend, it is possible to specify it using `--rendering-backend` CLI option.

If `libEGL.so` is available, you can use: `--rendering-backend=egl`.
If `libOSMesa.so` is available, you can use: `--rendering-backend=osmesa`.

You can use that feature for thumbnail generation whenever needed (e.g., Nautilus), by modifying the [thumbnail config file](CONFIGURATION_FILE.md), eg:`~/.config/f3d/thumbnail.json `:

```javascript
".*":
{
"rendering-backend": "egl"
},
```

If you use the portable archive, make sure to extract it somewhere the sandboxing system has access to, eg: Nautilus uses `bwrap` and gives it access to `/usr` but not to `/opt`.

## Windows

Expand Down
9 changes: 4 additions & 5 deletions doc/user/LIMITATIONS_AND_TROUBLESHOOTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,12 @@ The GCC flag `-latomic` is not being added automatically with specific architect
* If all fails, remove your `.cache` user dir and check that `pcmanfm` thumbnails are working.
* If they are working, then it is an issue specific to your file manager (see below for a potential work around).
* If only a few format have working thumbnails, then it is an issue with the mime types database.
* If no formats have working thumbnails, then it is an issue with the `f3d-plugin-xxx.thumbnailer` files.
* If no formats have working thumbnails, then it is can be an issue with sandboxing or with the `f3d-plugin-xxx.thumbnailer` files.
* If only big file do not have thumbnails, this is intended, you can modify this behavior in the `thumbnail.d/10_global.json` configuration folder using the `max-size` option.

Some file managers (eg: Nautilus) are using sandboxing for thumbnails, which the F3D standard binary release does not support as it needs
access to the Xorg server to render anything.
In that case, you want to use the headless version of F3D that rely on EGL instead of Xorg, available in the [releases page](https://github.com/f3d-app/f3d/releases).
If you use the portable archive, make sure to extract it somewhere the sandboxing system has access to, eg: Nautilus uses `bwrap` and gives it access to `/usr` but not to `/opt`.
> `--rendering-backend` CLI option is not working as expected
Dynamically switching rendering backend require VTK 9.4.0, you may need to update VTK or to use our [binary release](INSTALLATION.md).

## Windows

Expand Down

0 comments on commit ca4a69f

Please sign in to comment.